Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Getting an addin to run automatically

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Posts
    86
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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

  2. #2
    MrExcel MVP Damon Ostrander's Avatar
    Join Date
    Feb 2002
    Location
    Denver, Colorado USA
    Posts
    4,239
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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.
    Keep Excelling.

    Damon

    VBAexpert Excel Consulting
    LinkedIn Profile http://www.linkedin.com/pub/damon-ostrander/7/79/a93
    AllExperts Profile http://www.allexperts.com/ep/1059-30...-Ostrander.htm

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •