PC Review


Reply
Thread Tools Rate Thread

Auto Filter memory

 
 
Libby
Guest
Posts: n/a
 
      7th Jan 2009
Hi Guys,

I have a workbook which is used by multiple users. They can all save
changes, but I don't want the workbook saved with filters in place.
Sometimes filters are used. The filters are always on row 5 and on 35 columns.
Is there anyway, when someone saves the workbook, that the filters in place
could be "memorised", the workbook saved and the previous filter settings
then applied?

All help much appreciated!
 
Reply With Quote
 
 
 
 
Gary Brown
Guest
Posts: n/a
 
      7th Jan 2009
To get rid of all filters on a worksheet before the worksheet closes, put
this in the 'ThisWorkbook' module...

'--------------------------------------------------/
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim iCount As Integer, i As Integer

On Error Resume Next

iCount = Worksheets.Count

For i = 1 To iCount
Worksheets(i).ShowAllData
Next i

End Sub
'--------------------------------------------------/

--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"Libby" wrote:

> Hi Guys,
>
> I have a workbook which is used by multiple users. They can all save
> changes, but I don't want the workbook saved with filters in place.
> Sometimes filters are used. The filters are always on row 5 and on 35 columns.
> Is there anyway, when someone saves the workbook, that the filters in place
> could be "memorised", the workbook saved and the previous filter settings
> then applied?
>
> All help much appreciated!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Filter - Custom Auto Filter Johnnyboy5 Microsoft Excel Programming 4 2nd Aug 2009 09:36 AM
Excel auto-filter does not filter certain columns Eric_NY Microsoft Excel Misc 5 29th Nov 2008 10:13 AM
Data>Filter>Auto Filter in excel 2007? TIJ Microsoft Excel New Users 2 13th Nov 2008 03:28 AM
Excel 2007 Auto Filter Filter Django Microsoft Excel Misc 2 9th Sep 2008 10:52 PM
Excel auto filter doesn't recoginize case - won't filter AA from A =?Utf-8?B?TWlrZXk=?= Microsoft Excel Misc 1 29th Sep 2005 08:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:32 PM.