If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Help: how to lock cells after fulfilling a condition data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-09, 04:39
tusei tusei is offline
Registered User
 
Join Date: Mar 2009
Posts: 1
Help: how to lock cells after fulfilling a condition data

To all Excel Gurus,

I need help on how to lock cells after a certain data entry is fulfilled. To illustrate: I have data in A1, B1, C1, D1, E1, F1 etc... In C1 I have a validation list "Yes, No"... If a user chooses "Yes" in the validation drop-down, I want to lock Cells, A1, B1, C1 (so users cannot change data entry) but not D1, E1, F1.

My workbook and my sheet is protected.

Any help would be greatly appreciated.

Thank you all in advance.
Reply With Quote
  #2 (permalink)  
Old 03-12-09, 01:41
Chris Bode Chris Bode is offline
Registered User
 
Join Date: Feb 2009
Posts: 6
hope following code will make some sense for you
Code:
Sheets(1).Cells.Locked = True
Sheets(1).Protect Password:="Secret", Contents:=True
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On