Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Data Filtering 'Show All' macro

Using Excel 2000, I have created a macro that has the same functionality as
the data toolbar command 'Show All' and assigned it to a command button on
the worksheet. How do I modify the macro so that it recognises that the data
is unfiltered and prevents a run-time error '1004'message appearing?

Regards

Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Data Filtering 'Show All' macro

Sub AA()
If ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
End Sub

--
Regards,
Tom Ogilvy


"Andy@d2i" wrote in message
...
Using Excel 2000, I have created a macro that has the same functionality

as
the data toolbar command 'Show All' and assigned it to a command button on
the worksheet. How do I modify the macro so that it recognises that the

data
is unfiltered and prevents a run-time error '1004'message appearing?

Regards

Andy



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
Macro / Autofilter / Show All Data CousinExcel Excel Discussion (Misc queries) 3 February 17th 10 01:28 PM
Macro - filter - show all data Eva Excel Worksheet Functions 2 February 15th 10 10:07 PM
filtering to show items in a listbox eileenj Excel Discussion (Misc queries) 1 August 11th 06 01:30 PM
pivot table duplicates numbers under 'drop down show all'? scraig Excel Discussion (Misc queries) 1 June 23rd 06 01:02 AM
Simple macro - show all data Neil[_22_] Excel Programming 2 August 10th 04 10:39 AM


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