Name property (window)

Examples


The Name property specifies the internal name VBA uses to reference a window.

Syntax

window.Name

Parameters

window – A window object.

Comments

You cannot set the Name property at runtime. We recommend that you change a window’s Name property using the Visual Basic Properties window. Be sure to replace all referenced occurrences of the window with the new name.

Use the Name property to change the window name when you need to resolve naming conflicts between windows and other objects in your application. Naming conflicts typically arise between names in your project and reserved words in VBA.

You can also use the Name property when you want to make an window’s name more readable in VBA code.


Documentation Feedback