Identifying which formulas in Excel are slowing down workbook recalaculation

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
From a quick glance it's only the sort part that is 2007 specific. Try changing this:
Code:
With rAll.Worksheet.Sort
.SortFields.Clear
.SortFields.Add Key:=rKey, _
SortOn:=xlSortOnValues, Order:=xlDescending, _
DataOption:=xlSortNormal

.SetRange rAll
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
to this:
Code:
rAll.Sort Key1:=rKey, Order1:=xlDescending, _
DataOption1:=xlSortNormal, Header:=xlYes
 
Upvote 0
Confirming Rorya's Post.

I got the same error you did when I ran it.

And made the changes Rorya Suggested

Runs fine now.



This is actually pretty cool and handy code to keep around..
 
Upvote 0
Yes its working as we speak. Going through my sheet really slowly actually.

It will help me a lot. I usually go through my sheet pasting as values 'trial and error' LOL

Matt
 
Upvote 0
Got to agree with jonmo1 - this is seriously slick and amazingly valuable! I'm running it now on a workbook I had abandoned because it was choking along (taking more than a couple of minutes to calculate)!

Ya just gotta love this site!

Cheers!
Gino
 
Upvote 0
Upvote 0
Hi,

Gotta agree, this is a very handy piece of code, will be storing this one away:)

Ian.
 
Upvote 0
As a beginner with regards to VBA could some please be so kind and help me execute this code. I have a rather formula intensive workbook which has had a major update recently and has become horrendously slow to respond making it almost unworkable.

I have had some success in speeding it up slightly but still not enough by updating and tidying up conditional formatting, Vlookups are now Index Match, fine tuned other formulae, removed unnecessary calculations etc etc.

Help!!!
 
Upvote 0

Forum statistics

Threads
1,215,450
Messages
6,124,912
Members
449,195
Latest member
Stevenciu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top