Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple macro - show all data

Hi,

I use filters alot in excel but am tired of clicking "Data" ,
"Filter", "show all" to clear my previous filter selections.

Have tried recording a macro to execute in one hit to no avail.

Can anyone help with a sugestion, Code or keyboard shortcut.

Thanks in advance

Neil
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Simple macro - show all data

Neil

recording the actions gives:

Selection.AutoFilter ' switch on AutoFilter
Selection.AutoFilter Field:=3, Criteria1:="2" ' select value "2" in
Column 3
ActiveSheet.ShowAllData ' show all data

So, try something like this and attach it to a button:

Sub afShowAll()
ActiveSheet.ShowAllData ' show all data
End Sub


Regards

Trevor


"Neil" wrote in message
om...
Hi,

I use filters alot in excel but am tired of clicking "Data" ,
"Filter", "show all" to clear my previous filter selections.

Have tried recording a macro to execute in one hit to no avail.

Can anyone help with a sugestion, Code or keyboard shortcut.

Thanks in advance

Neil



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Simple macro - show all data

it may depend upon your version of Excel, but in 2002, there is a button you
can add already built in.

right click in the toolbar area customize Commands Data drag the
Show All button to a toolbar

it works for me!

"Neil" wrote in message
om...
Hi,

I use filters alot in excel but am tired of clicking "Data" ,
"Filter", "show all" to clear my previous filter selections.

Have tried recording a macro to execute in one hit to no avail.

Can anyone help with a sugestion, Code or keyboard shortcut.

Thanks in advance

Neil



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
Need a column to show 1 as %age of the other - simple ? [email protected] Excel Discussion (Misc queries) 2 March 16th 09 12:37 PM
Macro and Drop down list to show different sets of data do not wor audrey gouy Excel Discussion (Misc queries) 0 June 18th 08 09:31 AM
Hopefully a simple macro to precatenate data in a column Jon in Canby Or. Excel Discussion (Misc queries) 7 April 30th 08 02:33 PM


All times are GMT +1. The time now is 01:28 AM.

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"