Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.tables
|
|||
|
|||
Call a VBA Subroutine from a separate template
I want to call and execute a macro that resides in a different template.
For example ... I'm working in MyDocument.doc and want to call the macro "InsertCompanyLogo" from a template called "CompanyTemplate.dot". What code should I use? Please help. I'm stuck. Derek |
#2
Posted to microsoft.public.word.tables
|
|||
|
|||
Call a VBA Subroutine from a separate template
Easiest thing is to put the template that contains the macros that you want
to use into the Word\STARTUP folder so that it becomes an Addin. Then the macros that are contained in it will be available from all documents. -- 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 "Derek" wrote in message ... I want to call and execute a macro that resides in a different template. For example ... I'm working in MyDocument.doc and want to call the macro "InsertCompanyLogo" from a template called "CompanyTemplate.dot". What code should I use? Please help. I'm stuck. Derek |
#3
Posted to microsoft.public.word.tables
|
|||
|
|||
Call a VBA Subroutine from a separate template
And, if you do this, the syntax is:
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 See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! --------- --------- --------- --------- --------- --------- 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. "Doug Robbins - Word MVP" wrote in message ... Easiest thing is to put the template that contains the macros that you want to use into the Word\STARTUP folder so that it becomes an Addin. Then the macros that are contained in it will be available from all documents. -- 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 "Derek" wrote in message ... I want to call and execute a macro that resides in a different template. For example ... I'm working in MyDocument.doc and want to call the macro "InsertCompanyLogo" from a template called "CompanyTemplate.dot". What code should I use? Please help. I'm stuck. Derek |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Global/Master Template | New Users | |||
Very long time to call up a template | Microsoft Word Help | |||
Convert to Symbols | Microsoft Word Help | |||
Anyone have a good MS Word template to summarize a sales call | Microsoft Word Help | |||
CPU Usage When Working with Templates you created | Microsoft Word Help |