Document.ExecuteLine Method
Visio Automation Reference |
Executes a line of Microsoft Visual Basic code.
Version Information
Version Added: Visio 4.5
Syntax
expression.ExecuteLine(Line)
expression A variable that represents a Document object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Line | Required | String | A string that will be interpreted as Microsoft Visual Basic for Applications (VBA) code. |
Return Value
Nothing
Remarks
The VBA project of the Document object is told to execute the supplied string. VBA treats the string as it would treat the same string typed into its Immediate window.
Example
The following are some possible uses of the ExecuteLine method:
Visual Basic for Applications |
---|
|
See Also