Sheets Members
Use the Sheets collection to access all the sheets in the active workbook, including both Chart and Worksheet objects. For example, the following code inserts a worksheet after the first sheet in the active workbook and then inserts a chart after the new worksheet:
Sheets.Add type:=xlWorksheet, after:=Sheets(1) Sheets.Add type:=xlChart, after:=Sheets(2)
The Sheets collection has the following members
. Key members (shown in bold) are covered in the following reference section:
|
Add |
|
|
Count |
Delete |
|
|
HPageBreaks |
|
Item |
|
|
PrintOut |
PrintPreview |
|
Select |
Visible |
|
VPageBreaks |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access