Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Macro to FilterShowAll on Protected workbook

I have a protected and shared workbook with data filters enabled. Often
users will exit the workbook and leave their data-filter choices ... making
it difficult for the next user.

I recorded a show-all macro that runs on a button but it gives a VB error
(something like) "that feature is not allowed on a protected workbook".

Any ideas how I can get around this limitation? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Macro to FilterShowAll on Protected workbook

Hi Jimbo -

Try unprotecting the sheet before the "showall" method statement. Then
reprotect:

ActiveSheet.Unprotect
ActiveSheet.ShowAllData
ActiveSheet.Protect AllowFiltering:=True

Note that you may have to provide the protect and unprotect statements with
passwords or other settings as needed.
--
Jay


"Jimbo" wrote:

I have a protected and shared workbook with data filters enabled. Often
users will exit the workbook and leave their data-filter choices ... making
it difficult for the next user.

I recorded a show-all macro that runs on a button but it gives a VB error
(something like) "that feature is not allowed on a protected workbook".

Any ideas how I can get around this limitation? Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Macro to FilterShowAll on Protected workbook


I can't unprotect the worksheet without first un-sharing it ... and I don't
want the macro to kick-off other users.

"Jay" wrote:

Hi Jimbo -

Try unprotecting the sheet before the "showall" method statement. Then
reprotect:

ActiveSheet.Unprotect
ActiveSheet.ShowAllData
ActiveSheet.Protect AllowFiltering:=True

Note that you may have to provide the protect and unprotect statements with
passwords or other settings as needed.
--
Jay


"Jimbo" wrote:

I have a protected and shared workbook with data filters enabled. Often
users will exit the workbook and leave their data-filter choices ... making
it difficult for the next user.

I recorded a show-all macro that runs on a button but it gives a VB error
(something like) "that feature is not allowed on a protected workbook".

Any ideas how I can get around this limitation? Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Macro to FilterShowAll on Protected workbook

Can't help you then. I haven't yet worked in a shared environment. Sorry.
Somebody else will have to pick up on this thread.

I will research this, but it will take me a while so I'm going to bow out.

Good luck Jimbo,
--
Jay


"Jimbo" wrote:


I can't unprotect the worksheet without first un-sharing it ... and I don't
want the macro to kick-off other users.

"Jay" wrote:

Hi Jimbo -

Try unprotecting the sheet before the "showall" method statement. Then
reprotect:

ActiveSheet.Unprotect
ActiveSheet.ShowAllData
ActiveSheet.Protect AllowFiltering:=True

Note that you may have to provide the protect and unprotect statements with
passwords or other settings as needed.
--
Jay


"Jimbo" wrote:

I have a protected and shared workbook with data filters enabled. Often
users will exit the workbook and leave their data-filter choices ... making
it difficult for the next user.

I recorded a show-all macro that runs on a button but it gives a VB error
(something like) "that feature is not allowed on a protected workbook".

Any ideas how I can get around this limitation? Thanks.

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
Run a sort macro in a protected WORKBOOK Aggies Excel Discussion (Misc queries) 4 May 24th 07 11:36 PM
Macro for filter on protected workbook that works for all sheets, no matter what sheets are named? StargateFanFromWork[_3_] Excel Programming 6 January 26th 06 06:31 PM
Auto Filter - Protected sheet/workbook ronwill Excel Discussion (Misc queries) 3 January 10th 06 03:28 PM
Running a macro to protect a workbook on a already protected workbook UNprotects the workbook ?? WimR Excel Programming 9 July 25th 05 12:44 PM
Excel 2000 and filter feature in a protected workbook Mohan[_3_] Excel Programming 1 October 9th 03 01:27 PM


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