Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Protect then reprotect using macro

This is so frustrating. When you password protect your sheet you can filter
if you tick ALL the options but you can't use the ShowAll feature. Does any
one know how to unprotect sheet then select ShowAll then re protect? When I
attempt to do it then run the macro it keeps asking for a password. I don't
want users to have to use a password. I would like the macro to type the
password instead.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Protect then reprotect using macro

Worksheets("somesheetnamehere").unprotect password:="what's the password"
'do your stuff
Worksheets("somesheetnamehere").protect password:="what's the password"



checkQ wrote:

This is so frustrating. When you password protect your sheet you can filter
if you tick ALL the options but you can't use the ShowAll feature. Does any
one know how to unprotect sheet then select ShowAll then re protect? When I
attempt to do it then run the macro it keeps asking for a password. I don't
want users to have to use a password. I would like the macro to type the
password instead.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Protect then reprotect using macro

Thanks so much Dave. It worked!

"checkQ" wrote:

This is so frustrating. When you password protect your sheet you can filter
if you tick ALL the options but you can't use the ShowAll feature. Does any
one know how to unprotect sheet then select ShowAll then re protect? When I
attempt to do it then run the macro it keeps asking for a password. I don't
want users to have to use a password. I would like the macro to type the
password instead.

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
Protect macro from stopping saman110 via OfficeKB.com Excel Discussion (Misc queries) 1 August 16th 07 08:22 PM
Protect sheet in macro traima Excel Worksheet Functions 3 March 9th 07 06:05 PM
Protect macro ST Excel Discussion (Misc queries) 1 June 6th 06 06:26 PM
Using macro to un/protect sheet Bonbon Excel Worksheet Functions 2 February 23rd 06 08:14 PM
How to protect my macro Protect & Unprotect Several Worksheets Excel Discussion (Misc queries) 1 January 7th 05 02:01 AM


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