unlock all cells in column A
instanciate a checkbox in cell A1  (CheckBox1)
create a conditional formatting for B1:C1
put the thos vba code to Sheet1 Module

Private Sub CheckBox1_Click()
   Me.Unprotect
   If CheckBox1 = False Then
      Range("B1:C1").Locked = True
   Else
      Range("B1:C1").Locked = False
   End If
   Me.Protect
End Sub

(please dfind attached  sample on workbook - sheet1)



On Wed, Apr 20, 2011 at 4:07 AM, Tony O <tonyrulesy...@yahoo.com> wrote:

> I would like to add a checkbox in column A for an Excel spreadsheet.
>
> When the checkbox is checked, you can type in columns B, C and D.  If
> it is unchecked, the cells are locked.
> Ideally, I would like columns B, C and D to be grey if they are
> unchecked.
>
> How would I go about doing this?
>
>

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Attachment: checkbox, cell locking n conditional formatting.xls
Description: MS-Excel spreadsheet

Reply via email to