Skip to main content

Workbook.Excel4MacroSheets property

Table of contents
  1. Syntax
  2. Remarks
  3. Example

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 a Workbook 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.

MsgBox "There are " & ActiveWorkbook.Excel4MacroSheets.count & " Microsoft Excel 4.0 macro sheets in this workbook."

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>