Spreadsheet.DeleteVariables
This function deletes the specified range of variables from the spreadsheet.
| Syntax | Parameters | Return Value |
|---|---|---|
Sub Spreadsheet.DeleteVariables( _
From As Integer, _
To As Integer)
|
The beginning of the range of variables to delete. Type: Integer
The end of the range of variables to delete. Type: Integer |
This function does not return a value. |
SVB Example
Deleting cases and variables from a spreadsheet:
Option Base 1
Option Explicit
Sub Main
Dim spr As Spreadsheet
'assigns the active spreadsheet to the object spr
Set spr = ActiveSpreadsheet
'deletes cases 1-5 from the spreadsheet
spr.DeleteCases(1,5)
'deletes variables 1-5 from the spreadsheet
spr.DeleteVariables(1,5)
End Sub