RE: updating includetext fields from a macro

Subject: RE: updating includetext fields from a macro
From: "Weissman, Jessica" <WeissmanJ -at- abacustech -dot- com>
To: Steve Hudson <sh1448291904 -at- gmail -dot- com>
Date: Mon, 8 Jun 2015 19:20:59 +0000

Last time I tested activedocument.fields.update it updated only the fields in the main text story. That should be sufficient for includetext fields.

If you want to update everything including headers and footers and footnotes and all that, use this. Tested in 2007 and 2010.

Sub UpdateAllFieldsEverywhere()
' updates fields in all stories, not just main text
'variable declaration
Dim story As Word.Range
For Each story In ActiveDocument.StoryRanges
story.Fields.Update
Next story
End Sub

- Jessica
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Learn more about Adobe Technical Communication Suite (2015 Release) | http://bit.ly/1FR7zNW

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-leave -at- lists -dot- techwr-l -dot- com


Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwhirl.com/email-discussion-groups/ for more resources and info.

Looking for articles on Technical Communications? Head over to our online magazine at http://techwhirl.com

Looking for the archived Techwr-l email discussions? Search our public email archives @ http://techwr-l.com/archives


Follow-Ups:

References:
Re: updating includetext fields from a macro: From: Jay Maechtlen
Re: updating includetext fields from a macro: From: Keith Hood
Re: updating includetext fields from a macro: From: Jay Maechtlen
Re: updating includetext fields from a macro: From: Mike Starr
Re: updating includetext fields from a macro: From: Steve Hudson

Previous by Author: mysterious white line in table rows
Next by Author: Re: "Are technical writers the unsung heroes of document generation?"
Previous by Thread: Re: updating includetext fields from a macro
Next by Thread: Re: updating includetext fields from a macro


What this post helpful? Share it with friends and colleagues:

Sponsored Ads


Sponsored Ads