![]() |
|
#11
|
|||
|
|||
|
Sorry for the delay, been traveling for business...
Try... Code:
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Unprotect Password:="aaa"
Dim rng As Range
Set rng = Target.Parent.Range("B16")
If Target.Count > 1 Then Exit Sub
If Intersect(Target, rng) Is Nothing Then Exit Sub
With Range("B19:E19")
Select Case Target.Value
Case "No"
.Value = 0
.Locked = True
Case "Yes"
.Value = ""
.Locked = False
End Select
End With
ActiveSheet.Protect Password:="aaa"
End Sub
|
| Tags |
| autopopulate |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Excel to auto populate dates based on start and end
|
patidallas22 | Excel Programming | 9 | 04-21-2014 03:14 PM |
trying to use vlookup to calculate several different situations in one cell
|
heastlund | Excel | 3 | 11-21-2013 12:38 PM |
auto cell populate 2
|
Stevejd58 | Excel | 3 | 08-20-2013 04:23 PM |
auto cell populate
|
Stevejd58 | Excel | 14 | 05-13-2013 02:22 AM |
| Auto-populate an MS Word table cell with text from a diff cell? | dreamrthts | Word Tables | 0 | 03-20-2009 01:49 PM |