setting the default file format to .docm

A

Anne Schouten

How can I change the default file format to .docm in Word 2007?

I made a template with macros. When the user saves the file the first time,
by default, it will be saved as .docx. If the user forgets to change the
file format to .docm the macros cannot be used anymore.

However the user must still be able to save the file as Word 97-2003 (.doc)
and choose the filename and location.



I tried to give the file a name the user can change, but has the right
extension:



With Dialogs(wdDialogFileSaveAs)
.Name = "test.docm"
.Show
End With



but still the extension is .dotx instead of .dotm



Moreover I do not know how to trigger the macro as there is no
Document_SaveAs event.



Who can help me?



Thanks, Anne
 
G

Graham Mayor

If the macros are in the template (where they should be in most
circumstances) saving the document as docx does not prevent the macros in
the associated template from running (provided the template is available on
the PC where the document is opened); nor are the macros transferred from
the template to the document if you save as docm.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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