Spreadsheet.NumberOfVariables
This property Returns the number of variables in the spreadsheet.
This property is read only.
| Syntax | Parameters | Return Value |
|---|---|---|
| - | - | Integer |
SVB Example
Concatenating variables:
Option Base 1
Option Explicit
Sub Main
'concatenate variables 1 and 3 into a new variable, appended to the end of the dataset
'the string "Concat" is added to the beginning of each variable
'the concatenated variable values will be uppercased and separated by a ;
ActiveSpreadsheet.ConcatenateVariables(Array(1,3),ActiveSpreadsheet.NumberOfVariables,True,scToUpper,"Concat",";")
End Sub