Calling a macro from another template

R

red6000

Hi,

I have a macro in my 'normal.dot'

I also have another template that loads through the autostart whenever I
start word.

I want to use a macro that is in my normal.dot in some code in 'myother.dot'
when Word loads.

Can I do this?

Thanks
 
R

red6000

red6000 said:
Hi,

I have a macro in my 'normal.dot'

I also have another template that loads through the autostart whenever I
start word.

I want to use a macro that is in my normal.dot in some code in
'myother.dot' when Word loads.

Can I do this?

Thanks

Let me just expand a little. I have a template that loads through the
startup folder and in this template (called APA.dot) I have a module with
the following code: My problem is that 'SysUpdater' is in 'normal.dot' and
not 'apa.dot'.

Sub AutoExec()

Load SysUpdater

If SysUpdater.TextBox1.Value = "250106" Then

MsgBox ("don't update")

Else

MsgBox ("run update")

End If


Unload SysUpdater

End Sub
 
C

Charles Kenyon

Application.Run MacroName:="MyMacro"

--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

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