Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Reclaculating a selected range

Is there a way I can recalculate only a small part of the whole sheet
(the selected range)? This will help me reduce calcuation time on a
very large and complicated worksheet.

Thanks
Utkarsh

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Reclaculating a selected range

Depending on the version of excel (IIRC), there's some vba code that will
recalculate a range:

Range("a1:x99").calculate

But IIRC (and I may not), Charles Williams says that this is kind of dangerous.

You may want to search his site for calculation tips:
http://www.decisionmodels.com

In fact, you may want to browse his site to see if you can improve your design.


wrote:

Is there a way I can recalculate only a small part of the whole sheet
(the selected range)? This will help me reduce calcuation time on a
very large and complicated worksheet.

Thanks
Utkarsh


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Reclaculating a selected range

Thanks a ton, Dave

  #4   Report Post  
Member
 
Location: London
Posts: 78
Default

Quote:
Originally Posted by
Thanks a ton, Dave
If you want to go down the macro route, you might want to try something like:

Sub RecalcSel()
For Each xCell in Selection.Cells
oFormula EQUALS xCell.FormulaR1C1
xCell.value EQUALS xCell.value 'Fixes cell value and triggers cells dependent on this one to recalc too
xCell.FormulaR1C1 EQUALS oFormula 'Replaces formula and recalcs it
Next xCell
End Sub

MB
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
data validation list selected from a range Native Excel Discussion (Misc queries) 11 January 20th 06 01:11 AM
Data Validation range Nigel Excel Discussion (Misc queries) 2 December 15th 05 10:33 AM
delete every nth row in selected range cwinters Excel Discussion (Misc queries) 1 July 6th 05 08:17 PM
How can you change the color of the selected range? Andrew Excel Discussion (Misc queries) 2 June 30th 05 07:37 PM
Automatically clear values from a range of selected cells John Davies Excel Discussion (Misc queries) 1 June 28th 05 04:42 PM


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