Spreadsheet.MoveVariables
This function moves the specified range of variables in the spreadsheet.
| Syntax | Parameters | Return Value |
|---|---|---|
Sub Spreadsheet.MoveVariables( _
From As Integer, _
To As Integer, _
After As Integer)
|
The beginning of the range of variables to move. Type: Integer
The end of the range of variables to move. Type: Integer
Which variable to move the range of variables after. Type: Integer |
This function does not return a value. |
SVB Example
Moving cases and variables:
Option Base 1
Option Explicit
Sub Main
Dim spr As Spreadsheet
'assigns the active spreadsheet to the object spr
Set spr = ActiveSpreadsheet
'moves cases 1 to 5 and inserts them after case 10
spr.MoveCases(1,5,10)
'moves variables 1 to 5 and inserts them after case 10
spr.MoveVariables(1,5,10)
End Sub