title: Run-time error 1004: cannot run the macro 'Solver[InsertFuction]'
body: <p>Basically, this issues arises from this topic: <a href="https://stackoverflow.com/questions/48535436/solveroptions-how-to-find-the-parameter-position-assumenonneg">SolverOptions: How to find the parameter position (AssumeNonNeg)?</a></p>
  
  <p>When I open a file and import the <code>.bas</code> file and run it, everything works fine. However, when I try to apply the same procedure for all similar files using shell via VB script, I am getting the following error:</p>
  
  <blockquote>
    <p>Run-time error 1004: cannot run the macro 'SolverReset'. The macro may
    not be available in this workbook</p>
  </blockquote>
  
  <p>I initially tried without <code>SolverReset</code> and in that case I got an error saying </p>
  
  <blockquote>
    <p>Run-time error 1004: cannot run the macro 'Solver' The macro may not be available in this workbook.</p>
  </blockquote>
  
  <p>It looks like as if Excel is not activating Solver add-in? What might be the problem here?</p>
  
  <p>Thank you!</p>