+ Reply to Thread
Results 1 to 3 of 3

Installing and Enabling Solver on Workbook Open

  1. #1
    Registered User
    Join Date
    03-16-2016
    Location
    indiana, US
    MS-Off Ver
    2016
    Posts
    33

    Installing and Enabling Solver on Workbook Open

    Hello all,
    I have a workbook that I would like to distribute to others. The workbook uses the Solver add-in. To ensure all users have Solver installed and enabled on their versions of Excel I wanted to create a WorkbookOpen event that checks for it, and if it isn't installed installs it then enables the reference.

    I have the following code. There is no way of telling if the installation portion works or not because I already have it on my machine. However it does not enable the Solver add-in in the References list. Could someone point me in the right direction on how to accomplish the installation and activation of Solver?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    01-05-2017
    Location
    New York
    MS-Off Ver
    Office 2016
    Posts
    206

    Re: Installing and Enabling Solver on Workbook Open

    1.
    Quote Originally Posted by shoulddt View Post
    There is no way of telling if the installation portion works or not because I already have it on my machine.
    You can simply remove solver from your Excel to test the macro.

    2. You can simply embed a document with the easy-peasy instructions on how to enable Solver. And if someone can't figure that out, then they also won't know to enable macros to get your macro to work.

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,794

    Re: Installing and Enabling Solver on Workbook Open

    Depending on the excel version the solver file is named "Solver.xla" up to Excel 2003.

    For Excel 2007 to 2010 the name is "Solver.xlam" and probably the same for Excel 2016.

    But I'm not sure you can set a reference to solver using VB.

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Enabling manual calculation on one specific workbook but all other open worbooks remain on
    By teo.paranoid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-25-2014, 06:39 AM
  2. Installing timeout macro, but enabling another excel file to open
    By Brian Blazer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2013, 09:33 PM
  3. Macro to open a "Protected View" workbook and enabling edit
    By WaqasTariq in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2013, 05:25 PM
  4. using Macro to open Workbook without enabling macros
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2011, 01:00 PM
  5. Replies: 0
    Last Post: 08-09-2006, 03:00 AM
  6. Replies: 3
    Last Post: 05-31-2006, 05:40 PM
  7. Installing .XLA on file open
    By eklarsen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2005, 02:44 PM
  8. Solver Add-In not installing...
    By bonsione in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2005, 02:25 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1