Auto add "add ins"

Captain825

New Member
Joined
Oct 14, 2009
Messages
40
Is it possible to automatically add "add ins" like the Analysis Toolpak when the sheet opens?

I gave my sheet that uses the Analysis Toolpak to a friend and when he opened it, some formulas didn't work because the add in wasn't added.

Thanks,
Adrian
 

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Salamander

Board Regular
Joined
Jul 30, 2009
Messages
64
Hi There,

the following code can be placed in the ThisWorkbook module:

Code:
Private Sub Workbook_Open()
    If Not AddIns("Analysis ToolPak").Installed = True Then
        AddIns("Analysis ToolPak").Installed = True
    End If
End Sub

It may still have to install itself if the toolpak has never been used on that computer before but that shouldn't be a problem...

Hope that helps.

Cheers,

S
 

Watch MrExcel Video

Forum statistics

Threads
1,123,258
Messages
5,600,568
Members
414,389
Latest member
MarkElla

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top