Install Analysis ToolPak

A

Alex

Several people will be using one Excel file. I need the Analysis ToolPak
installed on everyone's machine and would like to add it to the Workbook_Open
event. Can someone please tell me how to write that code? I've searched and
tried several ways to no avail. Thanks.
 
C

Chip Pearson

The word "install" is ambiguous when it comes to Add-Ins. Does the Analysis
ToolPak (ATP) already exist on the users' machines and all that needs to be
done is load the ATP (which uses a property called "Installed")? Or do you
need to install the ATP add-in file itself on the users' machine and then
load it?

The former is much simpler than the latter.

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


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
G

Gord Dibben

Alex

In your workbook_open code

AddIns("Analysis ToolPak").Installed = True


Gord Dibben MS Excel MVP
 

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