Right-click any toolbar. Select customize. On the Commands tab select Macros
in the Categories list. Select your macro from the Commands list and drag it
to the toolbar yuou want.
Separately, that's a pretty lousy way to update the fields. You could just
use this line in place of what you currently have --
ActiveDocument.Fields.Update
But are you aware that your code (and this one-line equivalent) updates
fields only in the body of the document, not in headers, footers, textboxes,
etc? If you want to update all fields, wherever they are, use --
Dim pRange as Word.Range
For each pRange in ActiveDocument.StoryRanges
Do
pRange.Fields.Updatge
Set pRange = pRange.Next
Loop until pRange is nothing
Next
>I Have four fields that need to be updated when the template is opened and
>I
[quoted text clipped - 12 lines]
>
> Thanks
Lobo - 02 Feb 2005 22:01 GMT
Jezebel,
Thanks for the help, I'm just new to all this Macro writing, therefore my
bad macro.
I did not want the Button on the tool bar but in the document , so that it
is only available when that Template gets opened.
I have put in a command button object , that works
Now I need to be able to print each page seperately , and if possible with
the file name as one of the fields that was input previously
thanks
> Right-click any toolbar. Select customize. On the Commands tab select Macros
> in the Categories list. Select your macro from the Commands list and drag it
[quoted text clipped - 34 lines]
> >
> > Thanks