Getting an addin to run automatically

rexel12

Board Regular
Joined
Feb 19, 2002
Messages
86
As part of a macro I want an excel addin to start automatically. If I try and record the steps the recorder shows a blank screen. Any ideas how I resolve this.

TIA
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi Rexel12,

I assume that the add-in is already in Excel's list of available add-ins, but not installed (the checkbox is not checked). To get the add-in installed when the workbook opens, add the following code to the workbook's event code module:

Private Sub Workbook_Open()
AddIns("analysis toolpak").Installed = True
'add calls to any add-in macros here
End Sub

where the analysis toolpak add-in was use for example purposes. If you want one of the macros in the add-in to run as soon as the add-in is installed, place them where indicated. To install this code, right-click on the Excel icon at the left end of the Worksheet Menu toolbar, select View Code, and paste the code into the VBE code pane that appears.
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,920
Members
448,533
Latest member
thietbibeboiwasaco

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
Back
Top