Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.25 KB

Visio.Shapes.Application.md

File metadata and controls

52 lines (31 loc) · 1.25 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shapes.Application property (Visio)
vis_sdr.chm11313090
vis_sdr.chm11313090
Visio.Shapes.Application
dfe74ae8-a6e6-d221-0538-ff549e91d2fe
06/08/2017
medium

Shapes.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 Shapes 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

[!includeSupport and feedback]