Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
derwood
 
Posts: n/a
Default shortcut on autofilter function

i have many columns of data using the autofilter. is there a shortcut
that either returns all the fields to the all function or a shortcut
that returns all the data to the page

thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default shortcut on autofilter function

One line of code will do this (maybe put in your Personal.xls):

Sub Foo()
Activesheet.ShowAllData
End Sub

Then assign it to a New (Macro) Icon in your toolbar.
It will always be available on any sheet that has an autofilter
range assigned.

HTH

"derwood" wrote in message
oups.com...
i have many columns of data using the autofilter. is there a shortcut
that either returns all the fields to the all function or a shortcut
that returns all the data to the page

thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default shortcut on autofilter function

Hi

ToolsCustomiseCommandsDatadrag Show All to your Toolbar.
If you want to give it an icon, whilst in this mode, right clickChange
Button image.

Regards

Roger Govier


derwood wrote:
i have many columns of data using the autofilter. is there a shortcut
that either returns all the fields to the all function or a shortcut
that returns all the data to the page

thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
derwood
 
Posts: n/a
Default shortcut on autofilter function

thanks but is there a way to do this when the sheet is protected as well

  #5   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default shortcut on autofilter function

Hi

I just tried it on a Protected sheet and it allowed me to do so.
Excel 2003

Regards

Roger Govier


derwood wrote:
thanks but is there a way to do this when the sheet is protected as well



  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default shortcut on autofilter function

xl2002+ has an option to allow you do use autofilter on a protected worksheet.

In earlier versions...

If you already have the outline applied, you can protect the worksheet in code
(auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
.EnableAutoFilter = True
End With
End Sub

It needs to be reset each time you open the workbook. (excel doesn't remember
it after closing the workbook.)

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

derwood wrote:

thanks but is there a way to do this when the sheet is protected as well


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
derwood
 
Posts: n/a
Default shortcut on autofilter function

hi roger
maybe im doing something wrong here
loading show all in the task bar
selecting protect sheet
function turns off
then unprotecting sheet
function turns on

do you know of any other ways to do this
i also use excel 2003

  #8   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default shortcut on autofilter function

Hi Darren

I apologise. Yes, I was able to drag the ShowAll icon to he task bar whilst
in protect mode, but of course it doesn't work whilst protection is invoked.
Dave Peterson posted saying that you can enable Autofilter when setting
Protection on in XL2002 upward, and showed some code for what to do with
earlier versions.

Following Dave's lead, you will need to add the following code to the
workbook to be triggered on opening,

Sub auto_open()
With Worksheets("sheet1")
ActiveSheet.Protect Password:="roger", _
DrawingObjects:=True, _
Contents:=True, Scenarios:=True, _
AllowFiltering:=True
End With
End Sub

Then also add this code and attach it to a button which you can add to your
toolbar
Sub ShowAll()
ActiveSheet.Unprotect Password:="roger"
On Error Resume Next
ActiveSheet.ShowAllData
On Error GoTo 0
ActiveSheet.Protect Password:="roger", _
DrawingObjects:=True, _
Contents:=True, Scenarios:=True, _
AllowFiltering:=True
End Sub

Change the password to match that you currently use for the Sheet.
The On Error lines are to trap against a failure if you press the button
when a filter is not in place.

Sorry for misleading you with earlier posting.

Regards

Roger Govier


derwood wrote:
hi roger
maybe im doing something wrong here
loading show all in the task bar
selecting protect sheet
function turns off
then unprotecting sheet
function turns on

do you know of any other ways to do this
i also use excel 2003

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
Autofilter Function Brian Hearty via OfficeKB.com Excel Discussion (Misc queries) 2 November 16th 05 10:18 AM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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