Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
JY[_2_] JY[_2_] is offline
external usenet poster
 
Posts: 1
Default Updating contents of a Word table

Hi,

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

TIA,
JY
  #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




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of Contents not updating Sheila D Microsoft Word Help 7 May 25th 07 10:14 PM
Table of Contents not updating ohaya Microsoft Word Help 2 May 29th 06 01:17 PM
Word Table of Contents Updating Mike the Idea Guy Microsoft Word Help 1 January 25th 06 06:45 PM
Updating a table of contents Frank Drost Microsoft Word Help 1 July 8th 05 05:54 AM
Updating a table of contents Frank Drost Microsoft Word Help 9 June 29th 05 05:41 AM


All times are GMT +1. The time now is 05:37 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"