Dave,
Now I'm confused. What sort of macro do you have in Intro.doc? What does it
do (in general terms) and how is it launched? If it's an AutoOpen macro, then
you should be able to convert it to an AutoNew macro and achieve the same
result. If it's something else, it should still be available in any documents
created from the template. And if it's some sort of 'global' function, then
I'd recommend developing an add-in instead. (Seehttp://word.mvps.org/FAQs/Customization/WhatTemplatesStore.htmfor more info.)
As for distributing the documents / macros, it seems to me that distributing
a template would be just as easy as distibuting a document. Have a look athttp://word.mvps.org/faqs/macrosvba/DistributeMacros.htmfor some pointers -
especially since, as you say, you haven't tried this before.
I'm sure there's a better solution here somewhere. Feel free to send me an
email if you'd rather take this offline or need more flexibility to explain
you situation than these postings can offer.
--
Cheers!
Gordon
Uninvited email contact will be marked as SPAM and ignored. Please post all
follow-ups to the newsgroup.
- Show quoted text -
Hi Gordon.
Thanks for the reply.
I should have started at the beginning when I asked the original
question.
We have a document of about 170 pages which uses heading levels 1-4.
We want to develop a system that scans the document, pulls all of the
headings, puts a textbox in front of each, and puts them into a second
document which includes some introductory material.
The user will put a number in each textbox indicating how many times
the material under that heading should be printed, then use a
macrobutton to develop a third document which has only the material
the user wants and printed as many times as the user wants.
I'm doing a rough proof-of-concept for my manager. I showed her what I
have yesterday and she liked the idea and is going to take it to the
next level. If it gets approved, she'll get a real programmer to do
it. <g>
I'll keep tinkering in the mean time.
What I have so far pulls the headers, puts in the textboxes, opens the
Intro.doc file (which includes the macro for making the third
document) and puts the headers and textboxes after the introductory
material in Intro.doc.
Everything is working well enough for the demo except that if the user
saves the document, they will overwrite the original Intro.doc file.
This system will be distributed outside our office and used by many
different people. It seems to me that it would be difficult to get
them to put an add-in template in the correct folder, so if everything
could be included in the two files, distribution would be easier.
I read the pages you suggested but I'm a bit out of my league here and
may have missed something.
thanks again,
dave