how to run a macro when Visio starts (before any document is open)

W

Wayne Erfling

How do I create an "Autoexec" macro in Visio, to be run whenever Visio
starts (not just when I open a particular document)?

I might want to run a startup macro for other things, though I do have an
initial need.

Visio has the same "Reviewing Toolbar" problem as the other MS Office
applications (Reviewing toolbar displays whenever you start up MS Word or
Excel or Visio, no matter how many times you turn it off).

This works in MS Word:

'Add the following routine to the normal.dot file

Sub AutoExec()
'
' AutoExec Macro
' Macro created 4/21/2005 by Wayne Erfling
'

With Application.CommandBars("Reviewing")
.Visible = False
End With

End Sub

....and this works in Visio, but I don't know how to make it run when I start
Visio.

Do I save a Visio document to the "startup" folder? Is there an equivalent
of the "normal.dot" file is in Visio?
 
A

Al Edlund

AFAIK there is no equivalent to tell Visio to execute something specific
when it starts. The 'usual' code execution method is to have code specific
to a document that starts when the document is opened (either via an add-in
or code internal to the document)
al
 

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