TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: updating includetext fields from a macro From:Steve Hudson <sh1448291904 -at- gmail -dot- com> To:Jay Maechtlen <techwriter -at- laserpubs -dot- com> Date:Wed, 10 Jun 2015 16:24:41 +0800
At this stage my main concern is more about is the 'update source' then
'update field' enough to pull the updated material from its SharePoint
location, because you originally indicated that the 'updated source' alone
wasn't doing the job.
On 10 June 2015 at 13:20, Jay Maechtlen <techwriter -at- laserpubs -dot- com> wrote:
> 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