VB Script Help

Q

Quanchi

I need help with a VB script for Excel.

I need a VB script that runs when an Excel file is opened to check t
see if the Analysis ToolPak addin is checked, if not checked to check
if checked, leave it alone.

Any ideas?

Thanks in advance.

Quanch
 
C

Chip Pearson

Quanchi,

Try something like

Sub Auto_Open()
Application.AddIns("Analysis ToolPak").Installed = True
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Q

Quanchi

Ok.....this works on my computer....but when I send the file to someone
it gives this a VB error.

Any ideas
 
C

Chip Pearson

What error? Is the Analysis ToolPak available on the offending PC?


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Q

Quanchi

The computer that I tried to open the Excel file on does have th
Analysis ToolPak on it.

When the file is opened, I get "Run Time error 1004."

And it says "Unable to set the installed property of the Addin class."

Any ideas?

Thanks,

Quanch
 

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