#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 189
Default Restoring Filter

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Restoring Filter

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

On Oct 26, 12:30 am, peyman wrote:
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Watch Windows - restoring to floating Sharon R. Excel Discussion (Misc queries) 5 August 8th 07 08:34 AM
Restoring Worksheet Problems with formula within worksheet Excel Discussion (Misc queries) 4 July 4th 07 08:17 PM
Restoring toolbar No Name New Users to Excel 2 March 8th 07 01:56 PM
Restoring the File option on the top Menu bar of Excel. Smitty50 Excel Discussion (Misc queries) 3 October 17th 06 04:45 PM
Restoring fields in a pivot table Philip Excel Worksheet Functions 2 August 31st 06 07:01 PM


All times are GMT +1. The time now is 11:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"