+ Reply to Thread
Results 1 to 3 of 3

Passing arguments to solver

  1. #1
    Registered User
    Join Date
    07-20-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Passing arguments to solver

    I'm trying to make a function for solver that goes something like this:

    Please Login or Register  to view this content.
    SolverOk does not like this though... it does not like me using variables at all in fact. I've tried using explicitly defined variables, tried them as strings, and some other fruitless crap.

    SolverOk is expecting, "Range("X:Y")", in place of my variables for anyone not familiar with Solver.

    Can this be done, or is there some clever way to accomplish the same thing?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Passing arguments to solver

    Solver always works on the active worksheet, so

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-20-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Passing arguments to solver

    Fantastic, thanks. The reference I was looking at for the range object didn't mention using the .Address property.

+ 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. Passing arguments?
    By RPhilbin83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2011, 09:29 AM
  2. Passing Arguments
    By cosmarchy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2010, 04:36 PM
  3. Passing Arguments Between Spreadsheets
    By nt180792 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2009, 02:26 PM
  4. [SOLVED] Passing arguments from VBA to DLL
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-18-2006, 04:15 AM
  5. Passing arguments to VB Function
    By Tom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2006, 08: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