Macro "installation" help

M

Matt

I have an MS Word Macro/Form that needs distributed to the end users,
but I need to simplify the "installation" process. Here's what I have:

The form that the macro should launch is saved in a custom template
(myForm.dot). I need to copy the form from myForm.dot into the current
user's Normal.dot. Then a macro needs to be created in Normal.dot that
launches the form. (only one line, like "Normal.UserForm.Show").

I have written the piece to automatically create a toolbar and button
to run the macro, now I just need the main steps.

(Currently the end user has to do all these steps manually. This can
be overwhelming for the technically inept)

I don't normally do VBA/macros so I am not very familiar with the API.
Is it possible to export a project item from one template and import
it to another on the fly? How about create a macro on the fly?

Any help or push in the right direction is appreciated. Thanks, Matt.
 
D

Doug Robbins - Word MVP

You should NOT do it that way.

Rather, myform.dot should include an autonew() macro that launches the form
and the user should just use File>New to create a new document from
myform.dot

--
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, originally posted via msnews.microsoft.com
 
M

Matt

I wrote a batch file that copies myform.dot to the STARTUP folder, so
that the template is loaded by default when Word is loaded.

Now I have to figure out a way to remove the custom toolbar, macro,
and form from the user's normal.dot from any previous attempts at
installing this tool, or else the user will have 2 buttons going
forward with the new process (1 in myform.dot and 1 in normal.dot)
Deleting the user's normal.dot is not preferred...
 
F

Fumei2 via OfficeKB.com

"Now I have to figure out a way to remove the custom toolbar, macro,
and form from the user's normal.dot from any previous attempts at
installing this tool,"

That is why you should NOT do it that way. In fact...avoid using normal.dot
whatsoever. If, though, you have already modifed their normal.dot then you
have a problem. It will have to be modifed again.
I wrote a batch file that copies myform.dot to the STARTUP folder, so
that the template is loaded by default when Word is loaded.

Now I have to figure out a way to remove the custom toolbar, macro,
and form from the user's normal.dot from any previous attempts at
installing this tool, or else the user will have 2 buttons going
forward with the new process (1 in myform.dot and 1 in normal.dot)
Deleting the user's normal.dot is not preferred...

You should NOT do it that way.
[quoted text clipped - 9 lines]
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

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