D
David Thielen
Hi all;
I have the hard part working - a VBA macro in my template calls my
AddIn and that all works great. Now a couple of final details.
Note - we need to do this on Office (Word, Excel, & PPT) 2000, 2002,
2003, & 2007.
1) I get the AddIn object by calling Set addIn =
Application.COMAddIns("AutoTag2007.Connect"). However our namespace
for the IDTExtensibility2 class is version dependent. So it could just
as well be AutoTag2003.Connect. Is there a way to find out if an AddIn
exists without throwing an exception?
2) I want to make our VBA code globally available to any document on a
user's system. Is there a way to do that or do they need to add it to
each document?
3) I need this to run when a new document is created (and it has our
macro). I don't care if it runs when an existing document is opened as
my AddIn handles that (checks to see that it has already done the
processing). I am using AutoOpen() in Word - is that the recomended
way?
3b) And what is it in Excel & PPT? Same thing?
4) I copied the .dotm file I created to C:\Documents and
Settings\david\Application Data\Microsoft\Templates and while it shows
up under new if I select "My templates..." it does not show up under
the default "Blank and recent" which is Blamk document and new blog
post. How can I get it added there?
thanks - dave
david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Cubicle Wars - http://www.windwardreports.com/film.htm
I have the hard part working - a VBA macro in my template calls my
AddIn and that all works great. Now a couple of final details.
Note - we need to do this on Office (Word, Excel, & PPT) 2000, 2002,
2003, & 2007.
1) I get the AddIn object by calling Set addIn =
Application.COMAddIns("AutoTag2007.Connect"). However our namespace
for the IDTExtensibility2 class is version dependent. So it could just
as well be AutoTag2003.Connect. Is there a way to find out if an AddIn
exists without throwing an exception?
2) I want to make our VBA code globally available to any document on a
user's system. Is there a way to do that or do they need to add it to
each document?
3) I need this to run when a new document is created (and it has our
macro). I don't care if it runs when an existing document is opened as
my AddIn handles that (checks to see that it has already done the
processing). I am using AutoOpen() in Word - is that the recomended
way?
3b) And what is it in Excel & PPT? Same thing?
4) I copied the .dotm file I created to C:\Documents and
Settings\david\Application Data\Microsoft\Templates and while it shows
up under new if I select "My templates..." it does not show up under
the default "Blank and recent" which is Blamk document and new blog
post. How can I get it added there?
thanks - dave
david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Cubicle Wars - http://www.windwardreports.com/film.htm