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: 2
Default Un Protect in Excel 2000

I am trying to do the blow but it keeps coming up with run time errot 1004. I
am new at this and very confused. I need it to run utomatically at the click
of a button, any ideas?

Private Sub CommandButton1_Click()

' ActiveSheet.Unprotect "helen"

Range("C4:C7,H4:H7,C11:C14,H11:H14,C18:C21,G18:H21 ,C25:C28,H25:H28,I25:J28,C32:J34,N28,M29:P32,O21:O 22,F1:I1").Select
Range("F1").Activate
Selection.ClearContents
Range("C4").Select
ActiveSheet.Protect
Range("a1").Select
ActiveCell.FormulaR1C1 = "Select Contract Length"
ActiveSheet.Protect "helen"

End Sub

Cheers

Helen
 
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
Worksheet Protect in Excel 2000 Rodrigo Excel Programming 4 July 26th 05 05:08 PM
Protect Excel 2000 Objects Rodrigo Excel Programming 0 July 18th 05 05:48 PM
how do i protect an Autofilter funtion on Excel 2000 Sincy Excel Worksheet Functions 1 June 17th 05 11:41 AM
How can I protect cells in Excel 2000? Rajat Excel Worksheet Functions 1 April 22nd 05 05:28 AM
.Net and Excel 2000 Protect billS Excel Programming 1 October 5th 04 03:10 PM


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