LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.fr.excel
external usenet poster
 
Posts: 1
Default Solver macro slow when recalculate

Hi all,

I'm using the solver inside a simple macro to calculate a few cells in a
worksheet. When executed alone, this macro is fast (let's say
instantaneous).
What I'd like to do is to call this macro automatically everytime the sheet
is recalculated. I've tried this:

Private Sub Worksheet_Calculate()
Application.Calculation = xlCalculationManual
Solver_macro
Application.Calculation = xlCalculationAutomatic
End Sub

But the macro in this case is extremely slow ! I can't figure out what's the
problem.
Would you have a hint ? I only have a very limited knowledge in vba and
macros ...
Thanks a lot !
Arno


 
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
Recalculate 1 cell in a macro dhstein Excel Discussion (Misc queries) 4 July 18th 09 03:48 PM
macro to recalculate every 10 seconds Paul Moles Excel Worksheet Functions 2 August 21st 08 11:16 AM
Recalculate in a macro Wei-Dong Xu [MSFT] Excel Programming 0 October 1st 03 06:38 AM
Recalculate in a macro Niek Otten Excel Programming 0 September 30th 03 09:13 PM
help with solver or macro Dan[_24_] Excel Programming 1 September 23rd 03 04:31 PM


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