Moves the sheet to another location in the workbook.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)
'Usage
Dim Before As Object
Dim After As Object
Dim sheets1 As Sheets
sheets1.Move(Before, After)
void Move(
[In, Optional] object Before,
[In, Optional] object After
);
public void Move(
/*in*/System.Object Before,
/*in*/System.Object After
);
function Move(
Before : Object,
After : Object
);
Parameters
- Before
Optional Object. The sheet before which the moved sheet will be placed. You cannot specify Before if you specify After.
- After
Optional Object. The sheet after which the moved sheet will be placed. You cannot specify After if you specify Before.
If you don't specify either Before or After, Microsoft Excel creates a new workbook that contains the moved sheet.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms