Application.Sheets property (Excel)
Returns a Sheets collection that represents all the sheets in the active workbook. Read-only Sheets object.
Syntax
expression.Sheets
expression An expression that returns an Application object.
Remarks
Using this property without an object qualifier is equivalent to using ActiveWorkbook.Sheets.
Example
This example creates a new worksheet, and then places a list of the active workbook's sheet names in the first column.
Set newSheet = Sheets.Add(Type:=xlWorksheet)
For i = 1 To Sheets.Count
newSheet.Cells(i, 1).Value = Sheets(i).Name
Next i
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla