Glad to be of help. I can give you quick instructions on how to create your
own add-in template where you can store the macro I posted and have it run
automatically when you insert footnotes.
Your other question - how macros work - is a big subject. To get started
you can take a look at the Visual Basic Editor (VBE) help files (Help>Table
of Contents>Programming Concepts>Working with Macros). You can also check
out the Word MVPS website (a wealth of info there). Here’s a link to part 1
of their tutorial on templates:
http://word.mvps.org/FAQs/Customization/CreateATemplatePart1.htm
To open the VBE choose Tools>Macro>Visual Basic Editor from your Word
window. You could also try the default shortcut key Alt+F11 if you haven’t
assigned something else to that keyboard combo.
To create an add-in:
1. Open a new document.
2. Click File>Save As.
3. In the Save As dialog, in the Save As Type field, click Document
Template. Save it in your Word Startup folder so that it will load every
time you start word and the macros it contains will be available to you. To
find your Startup folder, click Tools>Options>File Locations, click on
Startup in the File Types list and click the Modify button to see the full
path.
4. In the Save As dialog, give your add-in a name in the File Name field
(eg “MyAddInâ€) and click Save. It will be saved as a template with a .dot
extension (eg “MyAddIn.dotâ€).
To add the macro I posted to your new add-in:
1. Open your add-in if it’s not open already (File>Open, document
type=templates and folder is your startup folder).
2. Open the VBE Editor (see above).
3. Make sure the Project Explorer is visible (in the VBE, click
View>Project Explorer or Ctl+R). The Project Explorer lists all your loaded
templates.
4. Find your add-in in the list. It should be listed as “Template Project
(MyAddIn)â€. Right click on it and choose Project Properties.
5. In the Project Properties dialog on the General tab give your add-in a
descriptive name in the Project Name field and click OK. Now it will be
listed by that descriptive name in the Project Explorer list.
6. Right click on your project in the Project Explorer and choose
Insert>Module. You’ll see a Modules section open in your project and Module1
listed there.
7. Double click on Module1 to make sure it’s open in a separate window in
the VBE (it should already be open). Type “Option Explicit†then hit enter a
couple of times. For more info about Option Explicit search the VBE Help
files.
8. Copy and paste the macro I posted underneath Option Explicit.
9. In the VBE, click Debug>Compile Project. This compiles the code and
checks for errors/problems.
10. In the VBE, click File>Save.
Close the VBE and exit Word.
Open Word and your new add-in will be automatically load if you saved it in
your Startup folder. To test whether it’s intercepting the insert footnote
command, insert a footnote and see what happens.
There’s a world more to this subject than the brief instrux above, but
hopefully they’ll get you started.