Spreadsheet.MoveCases
This function moves the specified range of cases in the spreadsheet.
| Syntax | Parameters | Return Value |
|---|---|---|
Sub Spreadsheet.MoveCases( _
From As Integer, _
To As Integer, _
After As Integer)
|
The beginning of the range of cases to move. Type: Integer
The end of the range of cases to move. Type: Integer
Which case to move the range of cases 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