run macro on document open

V

vonclausowitz

Hi All,

I need to store a macro that is run automatically whenever a document
is opened in Word.

I want this code to be run when I open a new Word window with a
document which name starts with "Document in".

If Left(ActiveDocument.Name, 11) = "Document in" Then
With Dialogs(wdDialogFileSaveAs)
.Name = "H:\" & ActiveDocument.Name
.Show
End With
End If

I tried normal.dot but I can't seem to find where to put it.

Regards
Marco
The Netherlands
 

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