Module to ReWrite Module??

C

Craig

I have a bunch Document Merge docs. The Code in all of them is pretty
simple and 9 out of 10 the code is identical. Each doc is just formatted
differently--some formatted custom for each user. But I've distributed
these to a bunch of my computer illiterate customers, and now I have
re-written how the Merge should be done. My question is what is the best
way to update the code in all of these docs. Logically, all I could think
of is somehow select Module1 do a select all and rewrite the content or
maybe just delete the module if possible and put a new module in each. Is
this possible?

A separate big question is what is the best way to do distribute something
like this in the future to update the code the easiest. I can't change the
content of the docs though.

Thank you in advance,

Craig.
 
C

Craig

Thank you for your response. Now I must ask this question--What is an
"addin"? And how do I create one?

According to Words2003 help definition I understand that "Add-ins are
supplemental programs that you install to extend the capabilities of
Microsoft Word by adding custom commands and specialized features." So to
make sure I understand, I would create a new Template, a dot D-O-T file and
save that with the addin loaded--Correct?

So I would distribute (or install) the Word template and my Add-in. And if
I want I would store the template in words Start-up folder so it could be
available upon Word startup.

I should mention that as with most of I'm dealing with customers whom are on
Word2000 thru 2003.

Assuming I understand thus far, how do I create this supplemental program?
I see in Word2003 a Word Add-in is a "WLL". Do I need any special SDK's? I
do have Visual Studio available to me.

And Lastly to check, I present call the AutoOpen to execute a Procedure with
some functions. I could change the AutoOpen in this template to point to a
Procedure and Functions in the Add-in correct?

Thanks again.
 
J

Jonathan West

Craig said:
Thank you for your response. Now I must ask this question--What is an
"addin"? And how do I create one?

This article will help you

Distributing macros to other users
http://word.mvps.org/FAQs/MacrosVBA/DistributeMacros.htm
According to Words2003 help definition I understand that "Add-ins are
supplemental programs that you install to extend the capabilities of
Microsoft Word by adding custom commands and specialized features." So to
make sure I understand, I would create a new Template, a dot D-O-T file
and save that with the addin loaded--Correct?

That definition is perfect civil-service-speak. It is concise, correct and
adds no information at all to what is already known.
So I would distribute (or install) the Word template and my Add-in. And
if I want I would store the template in words Start-up folder so it could
be available upon Word startup.

I should mention that as with most of I'm dealing with customers whom are
on Word2000 thru 2003.

Assuming I understand thus far, how do I create this supplemental program?
I see in Word2003 a Word Add-in is a "WLL". Do I need any special SDK's?
I do have Visual Studio available to me.

There are other kinds of add-ins called COM add-ins. You don't need to go
there.
And Lastly to check, I present call the AutoOpen to execute a Procedure
with some functions. I could change the AutoOpen in this template to
point to a Procedure and Functions in the Add-in correct?

I think you need to think carefully about what you are trying to achieve. If
the macros are only intended to be available to documents based on a
specific template, then they should be included in that template. if they
are intended to be generally available to all documents, then an add-in is
the way to go.
 
C

Craig

Thanks for the link.


Jonathan West said:
This article will help you

Distributing macros to other users
http://word.mvps.org/FAQs/MacrosVBA/DistributeMacros.htm

That definition is perfect civil-service-speak. It is concise, correct and
adds no information at all to what is already known.


There are other kinds of add-ins called COM add-ins. You don't need to go
there.


I think you need to think carefully about what you are trying to achieve. If
the macros are only intended to be available to documents based on a
specific template, then they should be included in that template. if they
are intended to be generally available to all documents, then an add-in is
the way to go.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top