I have a macro that I developed in Word 2010.
How do I send this to others to use?
I have a macro that I developed in Word 2010.
How do I send this to others to use?
From the sublime to the ridiculous, here are four different options:
Save the document as .dotm (macro enabled template). Save it to
%Appdata%/Microsoft/word/startup
Close word. Now, it will be accessible to all other word documents.
If not by default, then go to templates and tick the file saved above
to deploy, create a simple script that copies the file to the appropriate folder. You can probably deploy via email
View>ProjectExplorer
or Ctrl+R
).Project ( _your file_ )
),
Insert>Module
Insert>Module
.Word Macro-Enabled Document (*.docm)
(File>Save
or Ctrl+S
).I used an old solution - Nullsoft Scriptable Install System to copy the .dotm file to the %Appdata%/Microsoft/word/startup
directory. To do this, I set InstallDir in the NSIS script to this:
InstallDir "$APPDATA\Microsoft\Word\Startup"
NSIS creates a small installer in the form of an EXE file that is easy to distribute and easy for users to install.