Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.51 KB

Visio.Connects.Stat.md

File metadata and controls

58 lines (34 loc) · 1.51 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Connects.Stat property (Visio)
vis_sdr.chm10414420
vis_sdr.chm10414420
Visio.Connects.Stat
e51e58fb-a7b5-b18e-3f53-8ab1ff4d2994
06/08/2017
medium

Connects.Stat property (Visio)

Returns status information for an object. Read-only.

Syntax

expression.Stat

expression A variable that represents a Connects object.

Return value

Integer

Remarks

If an object is a reference to an entity in a document, and if that document closes, the Stat property returns a value in which the visStatClosed bit is set.

If an object is a reference to an entity that has been deleted, the Stat property returns a value in which the visStatDeleted bit is set.

A Component Object Model (COM) object, such as a Microsoft Visio Document object, lives as long as it is held (pointed to) by a client, even if the object is logically in a deleted or closed state.

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to use the Stat property to check the status of a Document object. Executing the macro prints 0 (visStatNormal) and then 8 (visStatClosed) in the Immediate window.

 
Public Sub Stat_Example() 
 
 Dim vsoDocument As Visio.Document 
 Set vsoDocument = Documents.Add("") 
 Debug.Print vsoDocument.Stat 
 vsoDocument.Close 
 Debug.Print vsoDocument.Stat 
 
End Sub

[!includeSupport and feedback]