Colin
2006-01-19 16:52:59 UTC
All,
I have produced some very simple macros that are linked to application
events. I have created this following the instructions found at
https://word.mvps.org/FAQs/MacrosVBA/AppClassEventsContent.htm
I put these in a template that I have stored in my Word startup
directory so that theyare always run.
I then initiate Word from a VB script in another application (Excel for
example).
Dim word As word.Application
Dim doc As word.Document
Set word = New word.Application
Set doc = word.Documents.Add("C:\test.dot")
doc.PrintOut
word.Quit (False)
This does not seem to initiate the macros that are held in my addins
template.
Am I missing something?
I am using Word 2003 on XP.
Thanks in advance for any assistance.
Colin
I have produced some very simple macros that are linked to application
events. I have created this following the instructions found at
https://word.mvps.org/FAQs/MacrosVBA/AppClassEventsContent.htm
I put these in a template that I have stored in my Word startup
directory so that theyare always run.
I then initiate Word from a VB script in another application (Excel for
example).
Dim word As word.Application
Dim doc As word.Document
Set word = New word.Application
Set doc = word.Documents.Add("C:\test.dot")
doc.PrintOut
word.Quit (False)
This does not seem to initiate the macros that are held in my addins
template.
Am I missing something?
I am using Word 2003 on XP.
Thanks in advance for any assistance.
Colin