The following will update the IncludeText fields and then the numpages
fields
Dim afield As Field
For Each afield In ActiveDocument.Fields
If afield.Type = wdFieldIncludeText Then
afield.Update
End If
Next afield
For Each afield In ActiveDocument.Fields
If afield.Type = wdFieldNumPages Then
afield.Update
End If
Next afield

Signature
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
> Thanks Doug
>
[quoted text clipped - 69 lines]
>>
>>.
Chris Watkins - 29 Oct 2004 00:43 GMT
Thanks again Doug
I've already done that though and still doesn't actually
refelect the true number of pages.
So I tried this:
Application.OnTime When:=Now + TimeValue("00:00:02"), _
Name:="UpdatePageNums"
to run another macro, called "UpdatePageNums" to physical
select the numpages field and update it.
This works, I reckon 'cos the docs are loaded within 2
seconds, then I move the cursor and select the field and
update, but its not pretty!
I'm also worried that it will still fail if a larger doc
doesn't get loaded within the 2 seconds.
Any suggestions appreciated!
cheers
chris
>-----Original Message-----
>The following will update the IncludeText fields and then the numpages
[quoted text clipped - 87 lines]
>
>.