Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
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
Posted to microsoft.public.word.newusers
|
|||
|
|||
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
Posted to microsoft.public.word.newusers
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Converting WordPerfect 12 files to Word 2003 | New Users | |||
Reveal codes in a word document | Microsoft Word Help | |||
How to put graphics on envelopes? | Microsoft Word Help | |||
Use Suppress command for Headers & Footers like Wordperfect | Page Layout | |||
In Word 2003 Can't See Headers & Footers in Print Layout | Page Layout |