OK. You have a macro in front of you and would really like to run it, but these instructions from Microsoft didn't help any.
http://msdn.microsoft.com/library/de...ner_macros.asp
The following instructions may be easier to follow.
First you need to know the name of the macro.
The name of the macro is found on the very top line of the macro code, usually comprised of two or more words crammed together in front of a set of brackets, such as
RunMyMacroNow
1. Start recording a new macro. To do so, click
TOOLS > MACRO > RECORD NEW MACRO
2. This pops up a dialog box where you can type in the macro name, exactly as it appears in the macro code without the trailing brackets. Click the KEYBOARD button and enter a HOTKEY combination. This will be the shortcut key combination used to run the macro. Then click Close.
3. There is usually a small box placed in view when you record a macro. Click the Stop Recording button now. If the small box doesn't show, then click
TOOLS > MACRO > STOP RECORDING
You have now told Word to recognize this macro, so now the macro has to be pasted into Word in order for it to run.
4. Highlite and copy the macro code.
Be sure to omit the first and last lines of the macro when you highlite and copy
5. EDIT the macro code. Click
TOOLS > MACRO > MACROS > EDIT
6. You are now looking at the macro code you just recorded, so we have to add the code to it.
Don't delete anything! Click the beginning of the line that says
END SUB and press the
ENTER key. This will move the line down one row, leaving a blank line.
7. PASTE the code into the blank line. If any red lines show up or a message box appears, then there is an error in the code, and the macro won't run.
8. Otherwise, if everything appears to be in order, then click
FILE > CLOSE AND RETURN TO MICROSOFT WORD
9. You should now be looking at the document again and you can now press the shortcut key combination to run the macro.
BTW, depending on how complex the document is provisioned (some have UserForms, buttons, whatever), most macros and functions are written into a MODULE. That's where you will find them when opening the VB Editor and the code is not visible.