Worksheet.Next Property (2007 System)
Gets a Worksheet that represents the next sheet.
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
The following code example uses the property to determine whether the current Worksheet is the last sheet in the workbook. If the current Worksheet is not the last sheet, then the name of the next sheet is displayed.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.