Re: updating includetext fields from a macro

Subject: Re: updating includetext fields from a macro
From: Jay Maechtlen <techwriter -at- laserpubs -dot- com>
To: "Weissman, Jessica" <WeissmanJ -at- abacustech -dot- com>, Steve Hudson <sh1448291904 -at- gmail -dot- com>
Date: Tue, 09 Jun 2015 22:20:51 -0700

Since there are many included files and many TOC fields, I'd rather make sure the includetext fields get updated first.
Then I loop through and update each TOC completely.
Then, knowing that the doc has its final length and pagination, I loop back through and update each TOC, page numbers only.

When I get a few moments, I'll go through and have another look.
There has to be some way to know if a field updated or not, perhaps by looking at file date or such.

On 6/8/2015 12:20 PM, Weissman, Jessica wrote:

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 techwriter -at- laserpubs -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


--
Jay Maechtlen
626 444-5112 office
626 840-8875 cell
www.laserpubs.com


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
RE: updating includetext fields from a macro: From: Weissman, Jessica

Previous by Author: Re: updating includetext fields from a macro
Next by Author: Re: Politically correct term for four-eyes authorization?
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