Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Workbook Reset AutoFilter to ShowAll

I have a large workbook that has the Autofilter available for many people to
view and I want to be able to reset the Autofilter to Show All before the
workbook is saved or closed. Please explain how in code clearly for this
novice.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Workbook Reset AutoFilter to ShowAll

I found that it's better to reset the autofilter when the workbook is opened.

If you reset it when you close the workbook, you'll have to save the workbook.
And your users may not want to save their changes.

This goes into a General module:

Option Explicit
Sub auto_open()
dim wks as worksheet
for each wks in thisworkbook.worksheets
with wks
If .FilterMode Then
.ShowAllData
End If
end with
next wks
End Sub

David J wrote:

I have a large workbook that has the Autofilter available for many people to
view and I want to be able to reset the Autofilter to Show All before the
workbook is saved or closed. Please explain how in code clearly for this
novice.


--

Dave Peterson
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
showall not working Steve Excel Discussion (Misc queries) 3 February 13th 08 06:04 PM
Macro to FilterShowAll on Protected workbook Jimbo Excel Programming 3 November 8th 06 10:22 PM
How to Reset Workbook Counter? Joseph Geretz Excel Programming 1 February 3rd 06 05:52 PM
Autofilter reset button Cheese Excel Discussion (Misc queries) 6 July 9th 05 06:39 PM
ShowAll Data CiaraG Excel Programming 3 December 1st 03 10:13 PM


All times are GMT +1. The time now is 06: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"