Word start

B

Bo Hansson

In my Word VBA application there is an option that makes a dialog appear
immediately when Word starts (coded in an AutoExec module).
In that module, I would also like to find out HOW Word was started, i.e. if
the user clicked a program command/icon, or a Word document?
Is that possible?

/BosseH
 
H

Helmut Weber

Hi Bo,

a simple way would be, to check the path of the activedocument.
If Word was not started with a file,
the path is empty.
 

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