Restoring Filter

G

Guest

In VBA, how can I restore filter before saving.I need a code by which
unfilter all the worksheet(if they are in filter mode)and then save the
workbook?
thanks
 
P

Pete_UK

You can just do:

Selection.AutoFilter

This will get rid of the filter pull-downs and restore any rows hidden
by the filter. However, if you don't have any filters on the sheet,
this will set them up.

Hope this helps.

Pete
 

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