Moves the sheet with the specified name to the specified position.
Syntax
| Visual Basic (Declaration) | |
|---|
Overloads Public Sub Move( _
ByVal sName As String, _
ByVal newPosition As Short _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As DDSheets
Dim sName As String
Dim newPosition As Short
instance.Move(sName, newPosition)
|
Parameters
- sName
- The Name value of the DDSheet that you want to move.
- newPosition
- The new position to which you want to move the sheet. If the new position is less than zero, the sheet will be moved to the beginning of the collection (0). If the new position is greater than the upper bound of this collection, the sheet will be moved to the end of the collection.
See Also