The database wizard has several entry points, some of which you can see in
the Actions section of a shape that has been linked manually with it.
Try this VBA sub:
Public Sub EnumDBAddons()
Dim adn As Addon
For Each adn In Visio.Application.Addons
If InStr(adn.Name, "Database") > 0 Then
Debug.Print adn.NameU, adn.Name
End If
Next
End Sub
This should return the following in the Immediate Window:
DBWiz Database Wizard
DBREX Database Re-Export
DBEXP Export to Database...
DBLINK Link to ODBC Database...
DBRS Database Refresh
DBS Database Select Record
DBR Database Refresh Shape
DBU Database Update Record
DBUS Database Update
DBD Database Delete Shape
DBL Database Launch Monitor
DBO Database Settings...
DBEX Database Export Wizard
Here is an example of how you start a particular one in code:
Public Sub SelDB()
Dim adn As Addon
Set adn = Visio.Application.Addons("DBWiz")
adn.Run ""
End Sub
The DB Wizard also creates certain User cells, so you may want to create
these in your code too.
--
David Parker
Microsoft MVP (Visio)
http://bvisual.spaces.live.com
http://www.visualizinginformation.com