Share via


Characters.Application Property

Visio Automation Reference

Read-only. Returns the instance of Microsoft Office Visio that is associated with an object.

Version Information
 Version Added:  Visio 2.0

Syntax

expression.Application

expression   A variable that represents a Characters object.

Return Value
Application

Example

The following Microsoft Visual Basic for Applications (VBA) macro gets the Application object associated with the active document and prints its process ID number in the Immediate window.

Visual Basic for Applications
  
Public Sub Application_Example()
 
    Dim vsoApplication As Visio.Application 
    Dim vsoDocument As Visio.Document
Set vsoDocument = ActiveDocument 

'Get the instance of Visio associated with the Document object. 
Set vsoApplication = vsoDocument.Application 
Debug.Print "The process ID of the Application object associated with the active document is: " & vsoApplication.ProcessID 

End Sub

See Also