Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Adrian
 
Posts: n/a
Default keyboard shortcut in Word 2003 for updating ALL fields including headers and footers

Hi,

Is there a keyboard shortcut in Word 2003 for updating ALL fields in a
document?

(F9 does not work for headers and footers.)

Thanks,

Adrian


  #2   Report Post  
Posted to microsoft.public.word.newusers
Greg Maxey
 
Posts: n/a
Default keyboard shortcut in Word 2003 for updating ALL fields including headers and footers

You can assign the following macro to a keyboard shortcut:

Sub myUpdateFields()
Dim pRange As Word.Range
Dim iLink As Long
iLink = ActiveDocument.Sections(1).Headers(1).Range.StoryT ype
For Each pRange In ActiveDocument.StoryRanges
Do
pRange.Fields.Update
Set pRange = pRange.NextStoryRange
Loop Until pRange Is Nothing
Next
End Sub

  #3   Report Post  
Posted to microsoft.public.word.newusers
Adrian
 
Posts: n/a
Default keyboard shortcut in Word 2003 for updating ALL fields including headers and footers

Great. Thanks Greg!

Adrian
"Greg Maxey" wrote in message
oups.com...
You can assign the following macro to a keyboard shortcut:

Sub myUpdateFields()
Dim pRange As Word.Range
Dim iLink As Long
iLink = ActiveDocument.Sections(1).Headers(1).Range.StoryT ype
For Each pRange In ActiveDocument.StoryRanges
Do
pRange.Fields.Update
Set pRange = pRange.NextStoryRange
Loop Until pRange Is Nothing
Next
End Sub



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting WordPerfect 12 files to Word 2003 Curious New Users 4 May 19th 23 02:48 PM
Reveal codes in a word document FUN101 Microsoft Word Help 4 May 16th 23 08:47 PM
How to put graphics on envelopes? Steve Koenig Microsoft Word Help 21 April 29th 23 02:47 AM
Use Suppress command for Headers & Footers like Wordperfect Simply BabyGirl Page Layout 4 April 8th 06 05:58 AM
In Word 2003 Can't See Headers & Footers in Print Layout AA Smith Page Layout 3 January 14th 05 04:10 AM


All times are GMT +1. The time now is 07:06 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"