Auto Filters on/off

  • Thread starter Thread starter pgarcia
  • Start date Start date
P

pgarcia

I have the following code: ActiveSheet.ShowAllData
what is the code to indicate if the auto filter is not on to keep running
the rest of the VB code?

thanks
 
with Activesheet
if .filtermode then
.showalldata
end if
end with
 
Never mind, just found what I was looking for.

With ActiveSheet
If .FilterMode Then
.ShowAllData
End If
End With
 
Cool, thanks. I found a post that you wrote back in 2004 with that same code.
Thanks
 
Some questions (and answers!) don't change <vbg>.
Cool, thanks. I found a post that you wrote back in 2004 with that same code.
Thanks
 

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

Back
Top