Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
52 lines (30 loc) · 1.11 KB

documents-application-property-visio.md

File metadata and controls

52 lines (30 loc) · 1.11 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
Documents.Application Property (Visio)
vis_sdr.chm10613090
vis_sdr.chm10613090
visio
Visio.Documents.Application
485ee568-3a48-c716-2049-48b1030ba269
06/08/2017

Documents.Application Property (Visio)

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

Syntax

expression . Application

expression A variable that represents a Documents 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.

 
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