View Single Post
  #2   Report Post  
Posted to microsoft.public.word.tables
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Updating contents of a Word table

Is this a table of contents, a table of figures, or an "ordinary" table that
contains formula fields? Generally, from the user interface you can update
fields by selecting them and pressing F9.

If you want a macro, you can use the following to update all fields in the
body of the document:

Sub UpdateFieldsInMainDoc()
Dim t As TableOfContents
Dim f As TableOfFigures
Dim g As Field

For Each t In ActiveDocument.TablesOfContents
t.Update
Next t

For Each f In ActiveDocument.TablesOfFigures
f.Update
Next f

For Each g In ActiveDocument.Fields
g.Update
Next g

End Sub

--
Stefan Blom
Microsoft Word MVP


"JY" wrote in message
...
Hi,

Ho do I update the contens of a Word table? The Table type does not have
an
Update() method.

TIA,
JY