I have a macro that I use to clean my used range, but it's slow, and I notice my mouse is flickering while it runs. I'd appreciate any help I can get in trouble-shooting it:Please Login or Register to view this content.
I have a macro that I use to clean my used range, but it's slow, and I notice my mouse is flickering while it runs. I'd appreciate any help I can get in trouble-shooting it:Please Login or Register to view this content.
Last edited by jomili; 12-30-2011 at 12:53 PM.
What does your CleanString function look like?
Here is how I would do the above code:
Please Login or Register to view this content.
hi jomili, two questions:
1. Why do you use Select in your code?
2. The flickering comes from looping the cells I guess. You could possibly try to use Specialcells (data volume is unknown)
You could also try this:
Please Login or Register to view this content.
Or
Please Login or Register to view this content.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Roy,
I was working on the same lines as you, prompted by Watersev's suggestion. Here's my crude attempt:Yours looks a lot cleaner. Why did you use xlCellTypeConstants? I would have thought Visible would work...never mind, it just clicked! Using constants I don't have to have my check for HasFormula. Duh! You make it look so easy!Please Login or Register to view this content.
Thanks to everyone for all the help on this one. I think you've all improved my coding loads. I appreciate all your efforts.
Thanks, and Happy New Year,
John
Roy,
I just noticed your code uses "ClearContents", not "CleanString". How do we adapt it? I triedbut that resulted in an error.Please Login or Register to view this content.
Try:
Please Login or Register to view this content.
Thanks Whizbang; that does the trick! Thanks so much for the followthrough.
Happy New Year!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks