Hi,
Is there a way to update all the field values in a
document at one time?
I used the following method:
'Just to apply F9
ActiveDocument.Selection.WholeStory
ActiveDocument.Selection.Fields.Update
I worked very fast with a good performance (completed in
100ms , 70KB file) But there is a problem: I could not
update the fields in the footers, headers, footnotes,
endnotes and textboxes... by this method. Because
Selection.WholeStory is selecting the whole document
except these parts.
Then, I tried the following way:
For Each aRange In ActiveDocument.StoryRanges
aRange.Select
Selection.WholeStory
Selection.Fields.Update
Next
However, this method is very slow. It takes 5-7 seconds to
to update the fields of a document (size 60-70KB) Because
I went through the whole document. (I think it is not
necessary)
Now, does anybody have an idea about thsi problem? How can
I update all the fields at one time (or very quickly with
a good performance)?
Thanks,
Mahmut YILMAZ