Document.VBProjectData Property
Visio Automation Reference |
Returns the Microsoft Visual Basic project data stored with a document. Read-only.
Version Information
Version Added: Visio 2002
Syntax
expression.VBProjectData
expression A variable that represents a Document object.
Return Value
Byte()
Example
You can use the VBProjectData property to determine whether a document has a project. The following macro shows how to get a reference to a document in Microsoft Office Visio to determine whether the document has a project. The code runs from a program outside the Visio document.
Visual Basic for Applications |
---|
|
If the document had no project associated with it, "0 -1" would be reported in the Immediate window. If the document had a project, the upper bound would be some number greater than zero (0). For example, "0 1535" would indicate that a project had 1,536 bytes of data.
See Also