Jan
Fri Apr 15 09:14:00 CDT 2005
Unfortunately the link doesn't work on my computer.
I have
Jan
"Charles Kenyon" <msnewsgroup@remove.no.spam.addbalance.com> skrev i en
meddelelse news:#VfMnKcQFHA.3664@TK2MSFTNGP15.phx.gbl...
> Much better is the macro at
http://www.gmayor.com/installing_macro.htm.
This
> will pick up all headers/footers.
> --
> Charles Kenyon
>
> Word New User FAQ & Web Directory:
http://addbalance.com/word
>
> Intermediate User's Guide to Microsoft Word (supplemented version of
> Microsoft's Legal Users' Guide)
http://addbalance.com/usersguide
>
> See also the MVP FAQ:
http://www.mvps.org/word which is awesome!
> --------- --------- --------- --------- --------- ---------
> This message is posted to a newsgroup. Please post replies
> and questions to the newsgroup so that others can learn
> from my ignorance and your wisdom.
>
> "Jan Kronsell" <kronsell(removebeforesend)@adslhome.dk> wrote in message
> news:uNUpiyaQFHA.3596@TK2MSFTNGP15.phx.gbl...
> >I got it myself:
> >
> > This will do the job:
> >
> > Sub FileSave()
> > ActiveDocument.Fields.Update
> > n = ActiveDocument.Sections.Count
> > For i = 1 To n
> > ActiveDocument.Sections(i).Headers(1).Range.Fields.Update
> > ActiveDocument.Sections(i).Footers(1).Range.Fields.Update
> > Next i
> > ActiveDocument.save
> > End Sub
> >
> > But I still wonder if it can done in an easier way.
> >
> > Jan
> >
> > "Jan Kronsell" <kronsell(removebeforesend)@adslhome.dk> skrev i en
> > meddelelse news:uGzi5NaQFHA.924@TK2MSFTNGP14.phx.gbl...
> >> I have the following code
> >>
> >> Selection.WholeStory
> >> Selection.Fields.Update
> >>
> >> that i use to update fields, but it does not updatefields in the header
> > and
> >> footer.
> >>
> >> I have tried adding
> >>
> >> Selection.HeaderFooter
> >>
> >> But gives an error (Ivalid use of property).
> >>
> >> How can I update all the fields, not matter where they are?
> >>
> >> Jan
> >>
> >>
> >>
> >
> >
>
>