Thread: [Solved] Macros now ok in docx files?
View Single Post
 
Old 04-23-2013, 03:34 PM
macropod's Avatar
macropod macropod is online now Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The essential difference between a docx file and a docm file is that a docx file cannot contain macros when saved. You can, however run macros against them; you can even add a macro to a docx file if you don't mind losing it upon closing the file.

Your addin should be saved as a dotm file (ie a word template), thereby making its macros available to all documents based on that template. Indeed, if the 'special toolbar' is appearing in the docx files, I suspect that's exactly what has happened.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote