Export (0) Print
Expand All
Expand Minimize

Application.Excel4MacroSheets Property

Office 2007
Returns a Sheets collection that represents all the Microsoft Excel 4.0 macro sheets in the specified workbook. Read-only.

Syntax

expression.Excel4MacroSheets

expression   A variable that represents an Application object.

Remarks

Using this property with the Application object or without an object qualifier is equivalent to using ActiveWorkbook.Excel4MacroSheets.

Example

This example displays the number of Microsoft Excel 4.0 macro sheets in the active workbook.

Visual Basic for Applications
MsgBox "There are " & ActiveWorkbook.Excel4MacroSheets.Count & _
    " Microsoft Excel 4.0 macro sheets in this workbook."



Community Additions

ADD
Show:
© 2015 Microsoft