Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
NlCO
 
Posts: n/a
Default Calculating Selected Cells


Hi, I need a little help here, I'm working in a "heavy" spreadsheet that
has hundredrs of arrays, lots of macros and other staff.

In my macros I used Activesheet.Calculate so it does'nt calculate the
whole workbook everytime.

Also I've pase all the possible values to make the file "lighter", but
what I can't do is make it work faster, sometimes I've change just one
formula and I have to calculate the whole sheet (SHIFT+F9) to get the
result (I've disabled the automatic calculation)
Is there any way to calculate just one cell or a group of them?

Thanks

NlCO


--
NlCO
------------------------------------------------------------------------
NlCO's Profile: http://www.excelforum.com/member.php...o&userid=26123
View this thread: http://www.excelforum.com/showthread...hreadid=394528

  #2   Report Post  
dominicb
 
Posts: n/a
Default


Good morning Nico

Highlight a portion of your spreadsheet and then run the code below.
This should recalculate only the highlighted section of your sheet.

Sub Recalc()
ActiveWindow.RangeSelection.Calculate
End Sub

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=394528

  #3   Report Post  
NlCO
 
Posts: n/a
Default


Thank You Dominic, I tried your solution but it didn't worked, I receive
a message saying:

Ambiguous Name Detected: Recalc

But through that error I finally found the answer:

Worksheets("Sheet1").UsedRange.Range("E30:E56,G30: G56").Calculate

Thanks a lot

Nico :) :)


--
NlCO
------------------------------------------------------------------------
NlCO's Profile: http://www.excelforum.com/member.php...o&userid=26123
View this thread: http://www.excelforum.com/showthread...hreadid=394528

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
How can i put a negative sign on a range of selected cells? chermaine Excel Discussion (Misc queries) 3 August 8th 05 02:49 AM
CALCULATING CELLS AS A TOTAL EDDIE Excel Discussion (Misc queries) 4 December 23rd 04 03:27 PM
Calculating without including Hidden Cells LiquidFire Excel Discussion (Misc queries) 3 November 29th 04 08:35 PM
how can I duplicate or copy a workbook then divide selected cells. macros excel... duplication and calculat Excel Discussion (Misc queries) 1 November 29th 04 03:16 PM
Selected cells grow and data entry impossible EXT is dissabled Allanhart42 Excel Discussion (Misc queries) 1 November 26th 04 02:59 PM


All times are GMT +1. The time now is 12:32 PM.

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"