Autofilter

  • Thread starter Thread starter Connie
  • Start date Start date
C

Connie

how can I (with VBA) turn off the Autofilter or turn on
the autofilter regardless of its current state?
 
This works for me. ws represents a worksheet, since
AutoFilterMode is a worksheet property.

If ws.AutoFilterMode = True Then
ws.AutoFilterMode = False
End If

Diane
 
Thank you.

I tried
ActiveSheet.AutoFilterMode = False which seems to work OK
but when I try
ActiveSheet.AutoFilterMode = True it never works.

Can you tell what I'm doing wrong?

Thanks again,

Connie
 
You can turn it off that way, but you have to autofilter a range.

Record a macro and you'll see the code.
 

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