![]() |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
A) No.
B) You can make use of the macros below (store them in the Normal template) to force an update of the INCLUDETEXT field(s) created as you insert a file as a link. Code:
Sub AutoOpen() Dim oStory As Range For Each oStory In ActiveDocument.StoryRanges oStory.Fields.Update If oStory.StoryType <> wdMainTextStory Then While Not (oStory.NextStoryRange Is Nothing) Set oStory = oStory.NextStoryRange oStory.Fields.Update Wend End If Next oStory Set oStory = Nothing End Sub Code:
Sub AutoNew() Dim oStory As Range For Each oStory In ActiveDocument.StoryRanges oStory.Fields.Update If oStory.StoryType <> wdMainTextStory Then While Not (oStory.NextStoryRange Is Nothing) Set oStory = oStory.NextStoryRange oStory.Fields.Update Wend End If Next oStory Set oStory = Nothing End Sub For more, see http://www.gmayor.com/installing_macro.htm by fellow MVP Graham Mayor, who also created the code above.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
Tags |
link, object, update |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Utopiantos | Word | 1 | 11-30-2011 05:30 AM |
![]() |
SaneMan | Word VBA | 5 | 10-14-2011 05:12 AM |
![]() |
RSchmidt | Word | 1 | 07-14-2011 04:27 PM |
Update Document Template when Saving the Document File | bjbercaw | Word | 3 | 11-16-2010 02:03 PM |
![]() |
vijayaram | Word | 1 | 12-30-2009 08:25 AM |