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: 5
Default unprotect VBA error

I am getting an error message when I try to use VBA code
to unprotect a worksheet. The code is simple:

Sheets("sheetname").UnProtect

There is no password assigned. But I get an
error: "Unprotect method of worksheet class failed."

What am I doing wrong? Any ideas? I have no problem
protecting a worksheet with VBA code (Sheets
("sheetname").Protect
DrawingObjects:="True"... etc...)

I get the error message only SOME of the time, which
confuses me the most. Any help is greatly appreciated.
Dan

 
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
400 Error in Unprotect/Protect Macro Youngergirl44 Excel Discussion (Misc queries) 1 September 23rd 08 01:29 PM
Unprotect Conditional Formatting Excel Discussion (Misc queries) 3 September 5th 05 02:49 PM
Unprotect worksheet error fiona Excel Programming 3 October 4th 04 12:34 PM
Unprotect method run-time error Rohit Thomas Excel Programming 0 July 8th 03 07:32 PM


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