Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1014 Bytes

Excel.Application.Sheets.md

File metadata and controls

45 lines (27 loc) · 1014 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.Sheets property (Excel)
vbaxl10.chm132108
vbaxl10.chm132108
Excel.Application.Sheets
729a512a-8faa-3a7e-758b-ff76e7200662
04/05/2019
medium

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

[!includeSupport and feedback]