Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Error on auto filter

This should be a quick fix. I want to re-set the autofilter to show all on
workbook open. Problem is when it's already set to show all I get an error
msg.

Private Sub Workbook_Open()
'===============
'reset filter
'===============

Application.ScreenUpdating = False
ActiveSheet.ShowAllData

End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Error on auto filter

Try adding this

on error resume next
ActiveSheet.ShowAllData
on error goto 0


"Rominall" wrote:

This should be a quick fix. I want to re-set the autofilter to show all on
workbook open. Problem is when it's already set to show all I get an error
msg.

Private Sub Workbook_Open()
'===============
'reset filter
'===============

Application.ScreenUpdating = False
ActiveSheet.ShowAllData

End Sub

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
Excel auto-filter does not filter certain columns Eric_NY Excel Discussion (Misc queries) 5 November 29th 08 10:13 AM
DataFilterAuto Filter in excel 2007? TIJ New Users to Excel 2 November 13th 08 03:28 AM
Limit filter options in Auto Filter lista72 Excel Discussion (Misc queries) 1 January 23rd 08 04:01 PM
auto filter with error value Cynthia Excel Discussion (Misc queries) 1 July 23rd 07 12:21 PM
Excel auto filter doesn't recoginize case - won't filter AA from A Mikey Excel Discussion (Misc queries) 1 September 29th 05 08:18 PM


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

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

About Us

"It's about Microsoft Excel"