Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
[email protected] s1004683@gmail.com is offline
external usenet poster
 
Posts: 1
Default Auto update fields when opening document, problems.

Hey,

I have a situation where I want to combine multiple source documents
into several target documents. When a source changes, the change has
to be visible in the target document too.

Example:
Source documents:
B1.doc
B2.doc
B3.doc
B4.doc

Target documents:
A1.doc (based on B1.doc, B2.doc)
A2.doc (based on B1.doc, B2.doc, B3.doc)
etc.

The solution
I choose "Insert File" to add the source documents to the
targetdocuments. Now the sourcedocuments are added as fields in the
target. These fields has to be updated automaticly when the target
document is opened. I am using the following macro to do that:
http://support.microsoft.com/kb/212703

Now, this macro has to run any time when a user opens a target
document. This can be done by give the macro name "AutoExec"(http://
support.microsoft.com/kb/211659)

But there's a problem:

"The AutoExec macro runs when Word starts if the AutoExec macro was
saved as part of the default (Normal.dot) template or if it was saved
as part of a global add-in."

I cannot access the normal.dot on every computer, everything has to be
in the document itself. So AutoExec is not the solution I can use.

There is a second problem. In the top of the page is a Table of
Contents. When updating all the fields, Word is taking the following
steps:
- Empty all the fields
- Update all the fields from top to bottom, beginning with the Table
of Contents. But hey! All the fields are empty, so the Table of
Contents aren't correct
- Update the rest of the fields.

I want to update the Table of Contents on the end, also automatic. How
can I do this?

Can anyone solve me with this problems? Or is there an alternative way
to reach my goal? Thanks!
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to AUTO-update special fields like "Document title"? Pablo Suarez New Users 0 November 10th 08 10:05 PM
Add fields that auto-update Michael D Microsoft Word Help 3 June 4th 08 02:58 PM
Prevent Auto Update on Fields when opening document emom Microsoft Word Help 2 October 10th 06 01:29 PM
How do i enable auto-update fields in a MS World 2003 document? Emeraldu Microsoft Word Help 1 May 3rd 06 12:43 PM
Attempting to auto-update fields in a word document Sanin R Microsoft Word Help 1 January 7th 05 06:39 PM


All times are GMT +1. The time now is 08:21 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"