Validation.Application Property (Visio)

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


expression. Application

expression A variable that represents a 'Validation' object.

Return Value



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

Public Sub Application_Example() 
 Dim vsoApplication As Visio.Application 
 Dim vsoValidation As Validation 
 Set vsoValidation = ActiveDocument.Validation 
 'Get the instance of Visio associated with the Validation object. 
 Set vsoApplication = vsoValidation.Application 
 Debug.Print "The process ID of the Application object associated with the active document is: " & vsoApplication.ProcessID 
End Sub