Worksheets Object
| Excel Developer Reference |
Remarks
The Worksheet object is also a member of the Sheets collection. The Sheets collection contains all the sheets in the workbook (both chart sheets and worksheets).
Example
Use the Worksheets property to return the Worksheets collection.The following example moves all the worksheets to the end of the workbook.
| Visual Basic for Applications |
|---|
|
Use the Add method to create a new worksheet and add it to the collection. The following example adds two new worksheets before sheet one of the active workbook.
| Visual Basic for Applications |
|---|
|
Use Worksheets(
| Visual Basic for Applications |
|---|
|