Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-15-2012, 02:28 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline How do I link a Word document to another Word document with automatic update? Windows 7 64bit How do I link a Word document to another Word document with automatic update? Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 4,036
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

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
Reply With Quote
 

Tags
link, object, update



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I link a Word document to another Word document with automatic update? Word 2007 - Automatic pagination of each new document Utopiantos Word 1 11-30-2011 05:30 AM
How do I link a Word document to another Word document with automatic update? How to link userform to another word document SaneMan Word VBA 5 10-14-2011 05:12 AM
How do I link a Word document to another Word document with automatic update? How do I dynamically update data in a Word Document from a database table 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
How do I link a Word document to another Word document with automatic update? Convert word document to JPEG. The word document may contain headerfooters vijayaram Word 1 12-30-2009 08:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft