Dave
Fri May 16 06:37:55 PDT 2008
On May 11, 9:35=A0pm, Gordon Bentley-Mix
<gordon(dot)bentleymix(at)gmail(dot)com> wrote:
> Dave,
>
> Now I'm confused. What sort of macro do you have in Intro.doc? What does i=
t
> do (in general terms) and how is it launched? If it's an AutoOpen macro, t=
hen
> 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 docume=
nts
> created from the template. And if it's some sort of 'global' function, the=
n
> I'd recommend developing an add-in instead. (See
http://word.mvps.org/FAQs/=
Customization/WhatTemplatesStore.htmfor more info.)
>
> As for distributing the documents / macros, it seems to me that distributi=
ng
> a template would be just as easy as distibuting a document. Have a look at=
http://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 explai=
n
> you situation than these postings can offer.
> --
> Cheers!
> Gordon
>
> Uninvited email contact will be marked as SPAM and ignored. Please post al=
l
> follow-ups to the newsgroup.
>
>
>
> "Dave" wrote:
>
> > Hi Gordon,
>
> > I had tried that but I need to run a macro in Intro.doc and I haven't
> > been able to copy a macro from the ActiveDocument to the new one. This
> > way, I can have the macro already in Intro.doc and everything seems to
> > work that way.
>
> > Also, the documents will be distributed widely and sending along a
> > template would make this more complex, I think. This is something we
> > haven't tried before.
>
> > Thanks for the help,
>
> > dave- Hide quoted text -
>
> - 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