Excel Scripting (vbscript) doesn't load Excel add-ins

L

Lee

I have a vbscript that opens excel and performs some analysis.
I have an add-in that needs to be loaded when I run the script, but it does
not.

If I just open excel, the add-in loads fine, but when the script opens
excel, the add-in does not load.

is this by design, or is there a way around this?

Thanks in advance.
 
C

Chip Pearson

When Excel is opened via automation, start up files and add-ins are
not loaded. This is by design to make the application start as quickly
as possible. If you need to load an add-in, you must do so with code:

XLApp.AddIns("Add In Name").Installed = True

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 

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