Refreshing fields in table cells.

R

Robin

Situation is as follows ...

A document header contains a text box.
This text box contains a table.
The table has a field in each cell (20 fields in total).
How do I select all these fields in VBA to refresh their values?

The text box (and the table therein) are in a building block that is placed
in the header using a macro. I know the cells can refresh because I see the
refreshed values if I do a print preview, but I want to see them while
looking at page Layout just after I have defined new field values. Field
values are applied via a user form and it also here after pressing Ok that I
want to refresh the fields.

thanks
Robin
 
D

Doug Robbins - Word MVP

The simple way is to use

With ActiveDocument
.PrintPreview
.ClosePrintPreview
End With

You will hardly notice the opening and closing of the Print Preview display.

--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top