#1
|
|||
|
|||
A newbie question: a must to save macro word file as .docm?
Is it a must to enable users to use a macro by saving the document as .docm? Can it be like saving it as a normal document file (.docx) and letting the users click a button to enable the attached macro? Thanks in advance. |
#2
|
||||
|
||||
Hi tinfanide,
With the docx/docm format, only the docm form supports macros (the 'm' means macro-enabled). If you save such a document in the docx form, the macro will be deleted. You could also save the document in the Word 97-2003 .doc format, if the later document format's features don't matter.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Oh, I see. So if I wanna write a macro for a user, they'll have to open the .docm file instead of a normal .docx one.
|
#4
|
||||
|
||||
Or you can store the macro in a macro-enabled template (*.dotm). If the template is Normal.dotm, the macro will be available to all documents; if the template is a document template, it will be available to all documents based on the template.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#5
|
|||
|
|||
Yes, but after I've saved the dotm file, I open a new document (.docx). How can I use the macro stored in .dotm in .docx?
|
#6
|
||||
|
||||
If this is a custom template, you can attach it to the document in the Templates and Add-Ins dialog box. To display the dialog: On the Developer tab, click Document Template.
If the template is Normal.dotm, it will be globally available to all other documents in Word, as mentioned earlier.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#7
|
||||
|
||||
In Word, the macros stored in a template are available to any document based on that template (provided they remain on the same system).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
newbie question | DanSandbergUCONN | Word | 5 | 03-06-2011 04:27 PM |
Word Macro: Save file as text with current file name | jabberwocky12 | Word VBA | 2 | 10-22-2010 12:23 PM |
Macro will not save to normal.dot file when exiting | bobbraun | Word | 1 | 09-28-2010 06:26 AM |
Newbie to Powerpoint question | Phil66 | PowerPoint | 9 | 06-01-2010 10:51 AM |
Perhaps a newbie question I know but | as1947 | Excel | 0 | 02-05-2009 08:01 AM |