Previous Document Next Document
Document.Name

Property Name As String

Member of Document

The Name property returns or sets the name of the VBA object for the current document. In CorelDRAW, this name is always Thisdocument unless changed by the user.

The following code example displays the name of the VBA project in a message box.

Sub DocName() 
 MsgBox ActiveDocument.Name 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.