Follow these steps to add this Macro to a Microsoft Word or Excel document:
- Open Microsoft Word or Excel
- Go to View -> Macros -> View Macros
- Change Macros in to the current file
- Give your macro a name (any name is OK)
- Click Create
- Clear the editor
- Press Copy Macro to copy the macro to your clipboard.
- Paste the macro
- Close the macro editor window
- Save the document as a macro-enabled document