Navigation: User guide > OLE automation > Properties >
Returns the number of spectra in the present configuration. The spectra are counted from 1 to number_of_spectra.
Dim np as integer
np = wcd.number_of_spectra