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

Hello!

I have a problem with macro using excel solver.

VBA doesn't identify solverfunctions as function. I have a reference to
solver.xla. There is no errors, at all there is no reaction for the
functions. If I put a messagebox to sub, it appears and works well.

What is the problem?

Please help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default excel solver macro

Hi
you may post the code you're currtnly using and which does not work.
Otherwise it's quite complicated to offer some help :-)

--
Regards
Frank Kabel
Frankfurt, Germany


Hannu Rantala wrote:
Hello!

I have a problem with macro using excel solver.

VBA doesn't identify solverfunctions as function. I have a reference
to solver.xla. There is no errors, at all there is no reaction for

the
functions. If I put a messagebox to sub, it appears and works well.

What is the problem?

Please help!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default excel solver macro

Ok!

I am using a code like this:
Sub Makro1()
SolverReset
SolverOptions AssumeNonNeg:=True
SolverOk SetCell:="B21", MaxMinVal:=3, ValueOf:="0",
ByChange:="B4,B6,B8"
SolverAdd CellRef:="B3", Relation:=2, FormulaText:="B5"
SolverAdd CellRef:="B4", Relation:=2, FormulaText:="B7"
SolverSolve
SolverFinish KeepFinal:=True
End Sub

The problem is actually in the last command SolverFinish. VBA doesn't
react on that command. I should make a macro which iterates several
values. So the text above should be repeated nine times. To tell to
solver what to do with results I should use SolverFinish and then
begin new iterative prosess. If I put msgbox after SolverSolve, it
appear after solverresults-window. And sometimes VBA doesn't identify
any solverfunctions but others it identify allways.

Hannu Rantala


Hi
you may post the code you're currtnly using and which does not work.
Otherwise it's quite complicated to offer some help :-)

--
Regards
Frank Kabel
Frankfurt, Germany


Hannu Rantala wrote:
Hello!

I have a problem with macro using excel solver.

VBA doesn't identify solverfunctions as function. I have a reference
to solver.xla. There is no errors, at all there is no reaction for

the
functions. If I put a messagebox to sub, it appears and works well.

What is the problem?

Please help!

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
Is it possible to run Solver using a macro? EA405 Excel Worksheet Functions 1 May 2nd 06 08:05 PM
macro using excel solver Hannu Rantala Excel Programming 0 April 2nd 04 09:20 AM
Solver won't work in macro, Excel 2002 SP1 Martin[_11_] Excel Programming 0 November 7th 03 07:03 PM
Using Solver within Macro Avner Mediouni Excel Programming 1 October 27th 03 12:08 AM
Solver Macro Dick Stumbo Excel Programming 0 September 18th 03 01:55 AM


All times are GMT +1. The time now is 02:06 PM.

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

About Us

"It's about Microsoft Excel"