Master.AddGuide method (Visio)

Adds a guide to a master.

Syntax

expression. AddGuide( _Type_ , _xPos_ , _yPos_ )

expression A variable that represents a Master object.

Parameters

Name Required/Optional Data type Description
Type Required Integer The type of guide to add.
xPos Required Double The x-coordinate of a point on the guide.
yPos Required Double The y-coordinate of a point on the guide.

Return value

Shape

Remarks

To view guides you add to a master by using the AddGuide method, use the OpenDrawWindow method to open the Master Editing window.

The following constants declared by the Visio type library are valid values for guide types.

Constant Value Description
visPoint 1 Guide point
visHorz 2 Horizontal guide
visVert 3 Vertical guide

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.