Using a filter when sheet has VBA code

A

aimee209

My workbook has several tabs that have a short code that changes the font
color if the processing date is more than 30 days old and whether is was
processed successfully. When the filters are not being used, it works fine.
But when the filters are used, everytime you click, there's a 2 second delay
and horizontal lines scroll through the screen. Is there any way when the
filter is on that there isn't a pause or screen flashes?

Thanks!!
 
G

Gary''s Student

Can't be sure without looking at you code, but this may help both problems:

Sub dural()
Application.ScreenUpdating = False
' your code
Application.ScreenUpdating = True
End Sub
 
A

aimee209

That helps so much!
Thanks again!

Gary''s Student said:
Can't be sure without looking at you code, but this may help both problems:

Sub dural()
Application.ScreenUpdating = False
' your code
Application.ScreenUpdating = True
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top