Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default "Show all" filtered rows

Dear all,

I have an excel file with 30+ columns, and auto filter in use. Many users
may open the file and use autofilter to look for information or update
information in the file. I have also protect the worksheet as some columns
contain formular which I don't want the general users to modify.

As there are so many columns in the file, it is difficult to see clearly
which columns has been filtered in the previous save action. It seems that
the "Show All" button does not work in a protected worksheet. I use excel
2002, and the "Show All" button is dim even the autofilter has applied.

Is there any workaround?? Perhaps a macro which do the "Show All"?

Many thanks,
Marisa


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default "Show all" filtered rows

Hi
Put a button on your sheet and attach this macro:

Sub ShowAllData()

With ActiveSheet
.Unprotect Password:="Whatever"
On Error Resume Next 'required if Advanced filter used
.ShowAllData
On Error GoTo 0
.AutoFilterMode = False 'Removes drop down arrows
.Protect Password:="Whatever"
End With
End Sub

regards
Paul
Marisa wrote:
Dear all,

I have an excel file with 30+ columns, and auto filter in use. Many users
may open the file and use autofilter to look for information or update
information in the file. I have also protect the worksheet as some columns
contain formular which I don't want the general users to modify.

As there are so many columns in the file, it is difficult to see clearly
which columns has been filtered in the previous save action. It seems that
the "Show All" button does not work in a protected worksheet. I use excel
2002, and the "Show All" button is dim even the autofilter has applied.

Is there any workaround?? Perhaps a macro which do the "Show All"?

Many thanks,
Marisa


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default "Show all" filtered rows

Hi Paul,
Thanks a lot!
How to set the autofilter on again? I put the autofilter always on row 12.
Thanks again.
Marisa

" wrote:

Hi
Put a button on your sheet and attach this macro:

Sub ShowAllData()

With ActiveSheet
.Unprotect Password:="Whatever"
On Error Resume Next 'required if Advanced filter used
.ShowAllData
On Error GoTo 0
.AutoFilterMode = False 'Removes drop down arrows
.Protect Password:="Whatever"
End With
End Sub

regards
Paul
Marisa wrote:
Dear all,

I have an excel file with 30+ columns, and auto filter in use. Many users
may open the file and use autofilter to look for information or update
information in the file. I have also protect the worksheet as some columns
contain formular which I don't want the general users to modify.

As there are so many columns in the file, it is difficult to see clearly
which columns has been filtered in the previous save action. It seems that
the "Show All" button does not work in a protected worksheet. I use excel
2002, and the "Show All" button is dim even the autofilter has applied.

Is there any workaround?? Perhaps a macro which do the "Show All"?

Many thanks,
Marisa



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default "Show all" filtered rows

Hi Marisa
How did you put the autofilter on in the first place?? I thought your
users were just autofiltering as normal, and you just wanted a way to
reset everything.
I've put protection back on the sheet after removing the filters -
maybe you want to remove that line? When you protect a sheet though,
you have the option of allowing filtering.
Get back to me if you have a more subtle problem
regards
Paul

Marisa wrote:
Hi Paul,
Thanks a lot!
How to set the autofilter on again? I put the autofilter always on row 12.
Thanks again.
Marisa

" wrote:

Hi
Put a button on your sheet and attach this macro:

Sub ShowAllData()

With ActiveSheet
.Unprotect Password:="Whatever"
On Error Resume Next 'required if Advanced filter used
.ShowAllData
On Error GoTo 0
.AutoFilterMode = False 'Removes drop down arrows
.Protect Password:="Whatever"
End With
End Sub

regards
Paul
Marisa wrote:
Dear all,

I have an excel file with 30+ columns, and auto filter in use. Many users
may open the file and use autofilter to look for information or update
information in the file. I have also protect the worksheet as some columns
contain formular which I don't want the general users to modify.

As there are so many columns in the file, it is difficult to see clearly
which columns has been filtered in the previous save action. It seems that
the "Show All" button does not work in a protected worksheet. I use excel
2002, and the "Show All" button is dim even the autofilter has applied.

Is there any workaround?? Perhaps a macro which do the "Show All"?

Many thanks,
Marisa




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default "Show all" filtered rows

Hi Paul,

I want the macro would return the original autofilter setting to the user.
For example, I allow the user to use autofilter function with the worksheet
is protected. I find the additional line as below:

' showall Macro
ActiveSheet.Unprotect Password:="whatever"
ActiveSheet.ShowAllData
ActiveSheet.Protect Password:="whatever"
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True _
, AllowFiltering:=True
End Sub

Thanks for helping me.
Marisa

" wrote:

Hi Marisa
How did you put the autofilter on in the first place?? I thought your
users were just autofiltering as normal, and you just wanted a way to
reset everything.
I've put protection back on the sheet after removing the filters -
maybe you want to remove that line? When you protect a sheet though,
you have the option of allowing filtering.
Get back to me if you have a more subtle problem
regards
Paul

Marisa wrote:
Hi Paul,
Thanks a lot!
How to set the autofilter on again? I put the autofilter always on row 12.
Thanks again.
Marisa

" wrote:

Hi
Put a button on your sheet and attach this macro:

Sub ShowAllData()

With ActiveSheet
.Unprotect Password:="Whatever"
On Error Resume Next 'required if Advanced filter used
.ShowAllData
On Error GoTo 0
.AutoFilterMode = False 'Removes drop down arrows
.Protect Password:="Whatever"
End With
End Sub

regards
Paul
Marisa wrote:
Dear all,

I have an excel file with 30+ columns, and auto filter in use. Many users
may open the file and use autofilter to look for information or update
information in the file. I have also protect the worksheet as some columns
contain formular which I don't want the general users to modify.

As there are so many columns in the file, it is difficult to see clearly
which columns has been filtered in the previous save action. It seems that
the "Show All" button does not work in a protected worksheet. I use excel
2002, and the "Show All" button is dim even the autofilter has applied.

Is there any workaround?? Perhaps a macro which do the "Show All"?

Many thanks,
Marisa






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 - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
EXCEL allow 2 options on status bar e.g. show "Count" + "Sum" LEJM Excel Discussion (Misc queries) 2 November 15th 07 07:49 PM
if "a" selected from dropdown menu then show "K" in other cell LEGALMATTERS Excel Worksheet Functions 1 April 13th 06 06:05 PM
Pivot table "Group and Show Details" vs. "SubTotals" pgchop Excel Programming 0 February 1st 06 07:29 AM
conditional formula to show "open" or "closed" SBS Excel Worksheet Functions 6 January 28th 06 01:48 AM


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