Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Recording and playing Macro (Solver)

Hi,

I've recorded a macro that consists on using solver on a target cell. The
code I get is very straightforward:

SolverOk SetCell:="$N$39", MaxMinVal:=2, ValueOf:="0",
ByChange:="$B$61:$B$64"
SolverSolve

When I try to replay the macro, I get the compile error "Sub or Function
not defined" (with "SolverOk" highlighted)

I suspect it has to do with the fact that solver is an add-in, but if it's
able to record it, it should be able to replay it, right?

Any halp would be appreciated. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Recording and playing Macro (Solver)

From VBE:

Tools References check SOLVER
--
Gary''s Student - gsnu200760
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Recording and playing Macro (Solver)

That worked, thanks a lot.

"Gary''s Student" wrote:

From VBE:

Tools References check SOLVER
--
Gary''s Student - gsnu200760

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Recording and playing Macro (Solver)

I've exactly the same problem plus one mo the Reference command under Tool
is dim and cannot be activated?

"Idoia" wrote:

That worked, thanks a lot.

"Gary''s Student" wrote:

From VBE:

Tools References check SOLVER
--
Gary''s Student - gsnu200760

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
Detecting the actual playing or NOT playing of a WAV file Bajbaj Excel Discussion (Misc queries) 0 October 24th 07 09:16 PM
recording a macro Heela Excel Worksheet Functions 2 September 19th 07 08:40 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM


All times are GMT +1. The time now is 02:17 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"