|
|
There will be an entry as
follows:
Sub macroname()
' macroname Macro
' Macro created date by user
End Sub
|
5. Copy the complete block of code from the ng post to the clipboard.
6. Switch to the macro editor window.
Select all the above listed block and paste the contents of the clipboard over it.
Some listings do not include the Sub ... End Sub lines. In this case, give the macro a useful descriptive name at (1) above and paste the code between the Sub and End Sub lines.If there is code in your window in red, it probably means that your newsreader wrapped a line of code that was meant to be one line. Try deleting at the end of the line and "unwrap" the line of code. If in doubt, ask.
7. Click the 'save' icon and close the editor.
8. From Word's document screen, right click on the toolbar and select 'customize' then from the command list (left window) select macros.
9. In the macro list (right window) pick your newly created macro with the left mouse button and drag it to your toolbar and drop it where you would like it to appear. (Or drop it in an appropriate menu if you prefer). Right click on either entry and edit the name to something sensible - for a toolbar button use an abbreviation or suitable icon. You can change the display to "default" from "text only" as well.
10. Close the 'customize' wizard and the macro will be available to your documents. If you saved it in normal.dot or another global template, it will be available to all of your documents. If you saved it in a template, it will be available in all documents based on that template (so long as the template is still "attached." See Template Basics for more on the various kinds of templates and how to use them.
<>>< ><<>
><<> <>>< ><<> <>><
<>>< ><<>
-- Graham Mayor <gmayor@mvps.org>
The five ages of man:
Lager.. Aga .. Viagra .. Saga .. Gaga
<>>< ><<> ><<> <>><
><<> <>>< <>>< ><<>
(With suggestions from Ibby and editing by CK.)
If this isn't making sense, you may want to read it put another way on the MVP website in the article by Dave Rado.
If you are careful, you can use your own macros to intercept and replace standard word commands (that are triggered by buttons already on a built-in toolbar). See Intercepting Events like Save and Print by Dave Rado, Anna-Karin Bohman and Jonathan West.
For more on macros follow the links at VBA Web Resources and see: The Microsoft Word MVP FAQ on VBA
![]()
The up-to-date version of this FAQ may be found at:
Download this FAQ in Word 97 format
Changes / suggestions / ideas can be sent to Charles Kenyon.
views since 13 April 2004
|
Copyright 2000-2006 Charles Kyle Kenyon
FAQ provided as an adjunct / hobby as a part of my web site as a
criminal defense lawyer.
|