Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protection within Macro


Is it possible to unprotect a protected sheet where a password is used
then re-protect with the same password, all within a macro. So far
have unprotected/reprotected with no password, but clearly this is o
minimal use. Any help most gratefully received. Nic

--
NickMinU
-----------------------------------------------------------------------
NickMinUK's Profile: http://www.excelforum.com/member.php...fo&userid=1055
View this thread: http://www.excelforum.com/showthread.php?threadid=48267

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Protection within Macro

Sheets("MySheet").unprotect password:="mypassword"
'do whatever
Sheets("MySheet").protect password:="mypassword"

Hope this helps
Rowan

NickMinUK wrote:
Is it possible to unprotect a protected sheet where a password is used,
then re-protect with the same password, all within a macro. So far I
have unprotected/reprotected with no password, but clearly this is of
minimal use. Any help most gratefully received. Nick


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protection within Macro


Thanks Rowan. It works, and now that I've discovered how to protect the
macro aswell, i reckon i'm pretty well covered.


--
NickMinUK
------------------------------------------------------------------------
NickMinUK's Profile: http://www.excelforum.com/member.php...o&userid=10558
View this thread: http://www.excelforum.com/showthread...hreadid=482671

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Protection within Macro

You're welcome.

NickMinUK wrote:
Thanks Rowan. It works, and now that I've discovered how to protect the
macro aswell, i reckon i'm pretty well covered.


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 Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
macro protection albertmb Excel Discussion (Misc queries) 4 January 1st 09 10:37 AM
Protection Macro Spheon Excel Discussion (Misc queries) 5 July 29th 06 01:16 PM
macro for protection ynissel Excel Discussion (Misc queries) 3 August 3rd 05 09:52 PM
macro protection leigh Excel Programming 1 May 4th 04 06:21 PM


All times are GMT +1. The time now is 09:21 PM.

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"