clear range with conditional formating takes ages

amigos.pl

New Member
Joined
Jul 2, 2009
Messages
31
so I have a range of 2000 cells

they all have 2 conditional formats (both using functions referencing different cells)

I written some VBA to clear those cells and it takes ages

I tried

.FormatConditions.Delete
.Clear
.ClearFormats
.Rows.Delete

nothing speeds it up

calculation is manual
enable events = false

I just run out of ideas....

any suggestions?

thank you in advance
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Can you post the rest of the code... E.g. are you looking at each cell in turn, or treating them as a single continuous range?
 
Upvote 0
forgot to add it: all that clearing attempts are done on 1 continous range

but I just tried application.screenupdate=false...and it worked

oldest trick always works

cheers!
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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