LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default How do I unprotect a sheet within a macro?

Please can anyone advise how I can overcome this Run-time error when using
the code
below:

"Unprotect method of worksheet class failed"

Worksheets("Template").Protect Password:="MyPassword"


Or what code should I use to remove a password format a sheet using another
macro and put the same password back on again.
--
Kind Regards

Mick


 
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
unprotect sheet macro belvy123 Excel Discussion (Misc queries) 2 March 27th 08 10:36 PM
unprotect sheet macro belvy123 Excel Discussion (Misc queries) 1 March 27th 08 10:32 PM
Macro to Unprotect sheet!? Neo1 Excel Worksheet Functions 5 March 28th 06 05:50 PM
Macro to Unprotect Sheet Eric[_23_] Excel Programming 3 August 4th 04 10:17 PM
Macro to Unprotect Sheet Eric[_23_] Excel Programming 0 August 4th 04 10:11 PM


All times are GMT +1. The time now is 05:15 AM.

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"