Running an AddOn using VBA (Visio 2003)

L

Leland

I would like to run the "DataBase Update" AddOn using VBA but can't
seem to come up with the correct syntax. I'm trying:

object.AddOn.Run ("DataBase Update")

where object is the shape object I want to update but it's not
working. Any help would be appreciated.

Dave
 
L

Leland

Okay, I figured out the syntax. It's:

Dim Addon as Visio.Addon
Set Addon = Visio.Addons("DataBase Update")
Addon.Run ("/parameter here")

Next question - what are the available parameters that can be passed to the
Database Update addon? Is there one that will automatically answer "Yes" to
the dialog that pops up with every shape that is updated? Or is there a
better way?

Also, does anyone know where I could find documentation on the Microsoft
supplied AddOns? I'm interested in the "Report" AddOn and what it's
available parameters are.

Thanks,
Dave
 
D

Dawn Wright [MSFT]

Dave,

I don't know about the add-on parameters, but you can use the
Application.AlertResponse property to determine whether Visio shows alerts
and dialog boxes.
 
L

Leland

Too cool. Works great!

Thanks,
Dave

Dawn Wright said:
Dave,

I don't know about the add-on parameters, but you can use the
Application.AlertResponse property to determine whether Visio shows alerts
and dialog boxes.

--
Dawn

This posting is provided "AS IS" with no warranties, and confers no rights.

"Yes"
 

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