Hi,
I bearly know how to spell Visio, but I am a
former novice in Excel VBA.
Here are some "tips"
Check out
Get familiar with the Visio Object Model -- heirarchy, properties, methods.
There are probably similarities between the Visio Object Model and the object models for the applications that are more popular, like Excel and Word.
For instance, if Page is an object, then there's likely an Add method like for a Slide in PowerPoint. However, in Word, there is no Page object.
Shapes, like rectangles, are objects. Again, you need to understand the Object Model to understand what "Parent" a shape is a property of.
In Help you will see, for instance, a definition of Shapes and Shape and it will explain the COLLECTION concept which is part of the Object Model.
Does Visio have a Macro Recorder? That can be BOTH a great learning tool and a helpful code construction starting point.
Trial and error -- Code and learn.
Post back with a specific code example when you run into trouble. You may get some help from a Visio novice, who might also be a former VBA novice.
Skip,
[red]Be Advised![/red] A man who jumps from a bridge in Paris, is…
INSANE! ![[tongue] [tongue] [tongue]](/data/assets/smilies/tongue.gif)