J
Jonathan West
Hi Avraham,
A couple of questions.
1. Is the sub you are calling declared as Public?
2. Is the template containing the sub currently open at the time you make
the call. By "open" i mean one of the following
- the template is loaded as an add-in
- the template is open in an editing window
- a document based on the template is open in an editing window
Unless the template is open and the Sub declared as public, Application.Run
will not work.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
A couple of questions.
1. Is the sub you are calling declared as Public?
2. Is the template containing the sub currently open at the time you make
the call. By "open" i mean one of the following
- the template is loaded as an add-in
- the template is open in an editing window
- a document based on the template is open in an editing window
Unless the template is open and the Sub declared as public, Application.Run
will not work.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org