Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Solver Macro

How do I program the Solver in VBE? When I run the macro
recorder and then run the solver, the code that comes out
seems fine, but it won't run as a macro, giving me the
error that the first token "SolverOK" is undefined. There
must be a better way to envoke the Solver, which in my
case, does have hardcoded cell refs.

Thanks for your help so much!!

Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Solver Macro

did you set a reference to the solver addin in tools=references in the VBE?

http://support.microsoft.com/support...ver/solver.asp
Creating Visual Basic Macros that Use Microsoft Excel Solver

http://www.frontsys.com/xlhelp.htm
Help for Microsoft Excel Solver Users

--
Regards,
Tom Ogilvy

"Michael" wrote in message
...
How do I program the Solver in VBE? When I run the macro
recorder and then run the solver, the code that comes out
seems fine, but it won't run as a macro, giving me the
error that the first token "SolverOK" is undefined. There
must be a better way to envoke the Solver, which in my
case, does have hardcoded cell refs.

Thanks for your help so much!!

Michael



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Solver Macro

Thank you so much!!!

Have a great weekend and God bless.

Michael

-----Original Message-----
did you set a reference to the solver addin in

tools=references in the VBE?

http://support.microsoft.com/support...ontent/solver/

solver.asp
Creating Visual Basic Macros that Use Microsoft Excel

Solver

http://www.frontsys.com/xlhelp.htm
Help for Microsoft Excel Solver Users

--
Regards,
Tom Ogilvy

"Michael" wrote in

message
...
How do I program the Solver in VBE? When I run the macro
recorder and then run the solver, the code that comes

out
seems fine, but it won't run as a macro, giving me the
error that the first token "SolverOK" is undefined.

There
must be a better way to envoke the Solver, which in my
case, does have hardcoded cell refs.

Thanks for your help so much!!

Michael



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
XL solver macro brdotter Excel Worksheet Functions 0 March 19th 09 12:12 PM
Macro for Solver Velero Excel Programming 2 February 19th 04 01:39 PM
Using Solver within Macro Avner Mediouni Excel Programming 1 October 27th 03 12:08 AM
help with solver or macro Dan[_24_] Excel Programming 1 September 23rd 03 04:31 PM
Solver Macro Dick Stumbo Excel Programming 0 September 18th 03 01:55 AM


All times are GMT +1. The time now is 05:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"