Hi all
My worksheet_change Macro is running smoothly, until I filter a data.
Even when I remove all filters, the macro will take a minute to run (whereas it is instantly otherwhise)
Anyone has any idea what the reason could be for this?
Hi all
My worksheet_change Macro is running smoothly, until I filter a data.
Even when I remove all filters, the macro will take a minute to run (whereas it is instantly otherwhise)
Anyone has any idea what the reason could be for this?
Please share your code.. if possible with a sample workbook
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
I am afraid I cannot share a sample workbookPlease Login or Register to view this content.
I am not seeing any filter in your code…
Here is the little bit fine tuned version of code…
Please Login or Register to view this content.
HI
Many thanks for your help.
Yes, there's no filter set in the code. It's only on the worksheet.
The thing is when I filter by "abc" (or whatever I filter by), then unfilter, the macro takes ages to run - I don't understand how it could have a influence on the code
Hi Sixthsense
I just changed the part about col. width to
Please Login or Register to view this content.
Just remove the screen updating turn off and On code and check…
Hi there
Are you referring to the macro running slow after filtering?
Just remove the Application.ScreenUpdating = False & Application.ScreenUpdating = True completely from your code and check...
Hi sixthsense
No success by removing it
However, I spotted the part which makes it so slow after filtering - is there a way to improve the coding of this?
ThanksPlease Login or Register to view this content.
FD
Check the below code...
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks