Skip to main content

Workbook.Name property

Table of contents
  1. Syntax
  2. Examples

Returns a String value that represents the name of the object.

Syntax

expression.Name

expression A variable that represents a Workbook object.

Examples

Debug.Print ThisWorkbook.Name
Debug.Print ActiveWorkbook.Name
Debug.Print Workbooks(1).Name

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>