![]() |
|
#3
|
||||
|
||||
|
Note also that neither { NUMWORDS } or { =B1/190 } fields update automatically. As they are in the footer you would either have to open the footer to update them or use a macro. http://www.gmayor.com/installing_macro.htm
Code:
Sub UpdateAllFields()
Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType <> wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Update
Wend
End If
Next oStory
Set oStory = Nothing
lbl_Exit:
Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
calculating convoy time elements
|
reithj | Excel | 3 | 06-09-2016 10:01 AM |
| Speech Mark problem. | voyagerone | Word | 9 | 02-02-2016 10:58 PM |
| Calculating Average Time across days | lizakay | Excel | 3 | 11-25-2015 05:16 PM |
Calculating Turnaround Time
|
shstone | Excel | 4 | 12-11-2014 12:39 PM |
Speech plug-in for PowerPoint
|
Brytni Boyd | PowerPoint | 4 | 05-19-2010 09:39 AM |