||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer
Application.Excel4MacroSheets Property (Excel)
Returns a Sheets
collection that represents all the Microsoft Excel 4.0 macro sheets in the specified workbook. Read-only.
A variable that represents an Application object.
Using this property with the Application object or without an object qualifier is equivalent to using ActiveWorkbook.Excel4MacroSheets.
This example displays the number of Microsoft Excel 4.0 macro sheets in the active workbook.
MsgBox "There are " & ActiveWorkbook.Excel4MacroSheets.Count & _
" Microsoft Excel 4.0 macro sheets in this workbook."