Visio Addons commands

V

visdev1

Is there a list or a way to show what all the commands for an addon are?
I am using visio's gantt chart and found the commands to do some of the
normal actions visio provides. I would like to find or make a list of all
the other commands the gantt chart has.

Example of what i have found so far:

Set objAddOn = Visio.Addons.Item("GC") ' GC = Gantt Chart
' Insert Row
objAddOn.Run ("/CMD=2540")

This is my second posting and still no luck finding any commands
It looks like there is no list or a way to ask for a list, which to me is
stupid.
I hope i am missing something.

Any reply will be appreciated.
Thanks!
 
M

Mark Nelson [MS]

There are several types of commands executed from shapes. Standard Visio
commands are executed by a function called DoCmd(). There is an equivalent
method for doing this through automation. If you look at the visUICmds enum
in the VBA Object browser, you can see the list of commands and their
numbers.

The Visio add-ons such as Gantt Chart each define a command line syntax that
is used by shapes to call into the add-on. These are executed through the
RunAddon() function in the shape or through the Addon.Run() method in
automation. The arguments passed into the add-on are not documented.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top