[Word 2003] Automation possible?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I have a requirement where I need to create child documents with
contents extracted from the parent. And it poses this problem: how do I
ensure that the child documents get automatically updated everytime
the parent undergo some changes?

I am not sure if the solution is so straight-forward. Your inputs will
be of great help, however! Thanks.
 
You can use an IncludeText field in the "child" documents to replicate
sections of the "parent" document. Something will however need to be done
to update the text displayed by those fields to reflect changes that are
made to the "parent". The best way to ensure that it happens would be to
include an autoopen macro in the child documents (or the template from which
they are created that includes code to update the fields in the document.
The simplest way to do that is to use the commands

ActiveDocument.PrintPreview
ActiveDocument.ClosePrintPreview


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
many thanks for the ideas, Doug!

the second part of your solution, however, does not work for me! :( do you
mean simply having those 2 lines of code in the macro will do the trick? no
luck! manual update does not produce the intended result, either!!

pls let me know where i could have possibly gone wrong in getting your point?

thanks!
 
Back
Top