LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default protect worksheet with check box

Hello
I added a check box using the control tool box. Then in the sheet code I
added the following
Private Sub CheckBox1_Click()
Rows("1:68").Select
ActiveSheet.Protect "pass"
ActiveSheet.Unprotect "pass"
End Sub
THis is what Im trying to do when the check box is selected or checked
then rows 1 thru 68 will be protected else if the checked box is uncheck
sheet is unprotected

thanks in advance
 
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
Can I change default check boxes on protect sheet? DWAyers Excel Discussion (Misc queries) 1 February 4th 08 06:00 PM
How do I copy a check box result from Worksheet A to Worksheet B? Javadan289 Excel Worksheet Functions 5 December 26th 06 07:25 PM
How can I protect a worksheet but still use ActiveX check-boxes? John Ewald Excel Discussion (Misc queries) 0 February 22nd 06 04:30 PM
How can I protect a cell and keep the spell check working? ochoaex Excel Discussion (Misc queries) 1 February 3rd 06 08:25 PM
How to protect a worksheet from being copied to another worksheet SurvivorIT Excel Discussion (Misc queries) 3 August 31st 05 01:53 PM


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