PC Review


Reply
Thread Tools Rate Thread

Activate the solver witin a macro

 
 
P Sellmeijer
Guest
Posts: n/a
 
      25th Jun 2007
Hi
How shoud i activate the solver (if possible) from a macro?

Peter
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      25th Jun 2007
Hi,

Try:-

Sub ordinate()
SolverOk SetCell:="$C$1", MaxMinVal:=3, ValueOf:="8", ByChange:="$A$1"
SolverSolve
End Sub

Mike


"P Sellmeijer" wrote:

> Hi
> How shoud i activate the solver (if possible) from a macro?
>
> Peter

 
Reply With Quote
 
P Sellmeijer
Guest
Posts: n/a
 
      25th Jun 2007
> Hi Mike,

Thanks for your reply.
Unfortunaly while running your macro i get an error at 'SolverOk" or
"SolverSolve"
with the comment "Sub or Function not5 defined".
I suppose that something should be declaired, but i do'nt know.

Peter
>
> Try:-
>
> Sub ordinate()
> SolverOk SetCell:="$C$1", MaxMinVal:=3, ValueOf:="8", ByChange:="$A$1"
> SolverSolve
> End Sub
>
> Mike
>
>
> "P Sellmeijer" wrote:
>
>> Hi
>> How shoud i activate the solver (if possible) from a macro?
>>
>> Peter


 
Reply With Quote
 
Tushar Mehta
Guest
Posts: n/a
 
      26th Jun 2007
Look up any Solver related topic (for example SolverSolve) in XL VBA
help. The 2nd paragraph will tell you what you have to do to make it
work.

In article <5D6AC8E5-B1DD-4C6F-9E9A-(E-Mail Removed)>,
(E-Mail Removed) says...
> > Hi Mike,

>
> Thanks for your reply.
> Unfortunaly while running your macro i get an error at 'SolverOk" or
> "SolverSolve"
> with the comment "Sub or Function not5 defined".
> I suppose that something should be declaired, but i do'nt know.
>
> Peter
> >
> > Try:-
> >
> > Sub ordinate()
> > SolverOk SetCell:="$C$1", MaxMinVal:=3, ValueOf:="8", ByChange:="$A$1"
> > SolverSolve
> > End Sub
> >
> > Mike
> >
> >
> > "P Sellmeijer" wrote:
> >
> >> Hi
> >> How shoud i activate the solver (if possible) from a macro?
> >>
> >> Peter

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solver Macro Lacty Microsoft Excel Programming 0 6th May 2008 10:32 AM
How do I create a macro that will activate the solver? =?Utf-8?B?SGphbHRp?= Microsoft Excel Programming 3 13th Jan 2005 09:09 AM
solver macro maury314 Microsoft Excel Programming 3 8th Jun 2004 09:36 PM
Trying to run SOLVER through macro M. A. Mian Microsoft Excel Programming 2 27th Mar 2004 09:51 AM
Solver in a macro Paul Mennen Microsoft Excel Programming 4 13th Sep 2003 08:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:39 PM.