TITLE field won't update in header table 
Author Message
 TITLE field won't update in header table

Hi Karen,

Fields in the header should update when you switch between
Normal and PringLayout view, or into and out of PrintPreview.

Using a macro to update the fields in this particular
document, something like this should work:

Sub UpdateMyFields()
    ActiveDocument.Fields.Update
    ActiveDocument.Sections(1).Headers( _
        wdHeaderFooterPrimary).Range.Fields.Update
End Sub

Quote:
> I've inserted the field TITLE in two places. On the first
> page of the document, it updates fine once I Select All
> and hit "F9" to update all fields.

> The second place I've inserted the field TITLE is in a two-
> column table that I've inserted in the heading of the
> remaining pages (different first page). This field does
> not update at all, even after the "F9" procedure and even
> after saving, closing, and re-opening the document.

Cindy Meister
INTER-Solutions, Switzerland
http://www.*-*-*.com/
http://www.*-*-*.com/
http://www.*-*-*.com/

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)



Tue, 21 Sep 2004 18:14:14 GMT  
 TITLE field won't update in header table
Hi, Cindy,

Your tip about switching between Normal and PrintLayout
view worked to update the field in my header, so that I
didn't even need to look into the VB code.

However, I'm keeping that info in my back pocket for
future reference.

Thank you very much for solving my problem (two ways!).

Karen

Quote:
>-----Original Message-----
>Hi Karen,

>Fields in the header should update when you switch
between
>Normal and PringLayout view, or into and out of
PrintPreview.

>Using a macro to update the fields in this particular
>document, something like this should work:

>Sub UpdateMyFields()
>    ActiveDocument.Fields.Update
>    ActiveDocument.Sections(1).Headers( _
>        wdHeaderFooterPrimary).Range.Fields.Update
>End Sub

>> I've inserted the field TITLE in two places. On the
first
>> page of the document, it updates fine once I Select All
>> and hit "F9" to update all fields.

>> The second place I've inserted the field TITLE is in a
two-
>> column table that I've inserted in the heading of the
>> remaining pages (different first page). This field does
>> not update at all, even after the "F9" procedure and
even
>> after saving, closing, and re-opening the document.

>Cindy Meister
>INTER-Solutions, Switzerland
>http://homepage.swissonline.ch/cindymeister
>http://www.mvps.org/word
>http://go.compuserve.com/MSOfficeForum

>This reply is posted in the Newsgroup; please post any
follow
>question or reply in the newsgroup and not by e-mail :-)

>.



Wed, 22 Sep 2004 04:13:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Acc2000: Access tables attached to SQL-Server won't update

2. ADO .NET won't update table

3. Tabbed form field won't update

4. Tabbed Form Field won't update

5. updating fields in table from field in another table

6. Using--After Update-- to update field in table.

7. Titles Won't Print

8. Use report fields to update table fields

9. update table field from xref table

10. Updating fields: footer doesn't update right

11. Why won't my Group Header display?

12. Update a Header Field in a Protected Document

 

 
Powered by phpBB® Forum Software