Prev: Looking for a way to automate checking for consistency in document
Next: Invalid Argument .ListCount doubles
From: Robin on 20 Jan 2010 16:54 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
From: Doug Robbins - Word MVP on 20 Jan 2010 19:06 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. "Robin" <Robin(a)discussions.microsoft.com> wrote in message news:DF43AEF1-6087-402B-9995-65222B63ECC2(a)microsoft.com... > 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
From: Robin on 22 Jan 2010 04:17
Thanks that certainly did the trick! Robin |