This documentation is archived and is not being maintained.

_Chart.Move Method

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)

void Move(
	Object Before,
	Object After
)

Parameters

Before
Type: System.Object

Optional Object. The sheet before which the moved sheet will be placed. You cannot specify Before if you specify After.

After
Type: System.Object

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.

Show: