V
Vickie********
I need to know how to make this coding run differant If
for instance Part 1 (see coding Part 1) the user enters an
X (Has to be an X no other type of charator)in Cell F22 or
F23 which turns Cells F14 and F16 red. Now the user enters
a Last name in Cell F14 that cell turns back to normal
color. Then they enter a First name in Cell F16 that Cell
turns back to a normal color. If they take out the name in
either Cell that cell turns red again. If they take the X
out of Cell F22 and F23 the Cells F14 an F16 turm to
normal color.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Rem Put an X in cells F22 or F23 makes Cells F14 AND F16
red
Rem _____________________CODING PART 1_________________
If Target.Address = "$F$22" Or Target.Address
= "$F$23" Then
If UCase(Target) = "X" Then
If Len(Range("F14")) = 0 Then
Range("F14").Interior.ColorIndex = 3
End If
End If
End If
If Target.Address = "$F$22" Or Target.Address
= "$F$23" Then
If UCase(Target) = "X" Then
If Len(Range("F16")) = 0 Then
Range("F16").Interior.ColorIndex = 3
End If
End If
End If
for instance Part 1 (see coding Part 1) the user enters an
X (Has to be an X no other type of charator)in Cell F22 or
F23 which turns Cells F14 and F16 red. Now the user enters
a Last name in Cell F14 that cell turns back to normal
color. Then they enter a First name in Cell F16 that Cell
turns back to a normal color. If they take out the name in
either Cell that cell turns red again. If they take the X
out of Cell F22 and F23 the Cells F14 an F16 turm to
normal color.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Rem Put an X in cells F22 or F23 makes Cells F14 AND F16
red
Rem _____________________CODING PART 1_________________
If Target.Address = "$F$22" Or Target.Address
= "$F$23" Then
If UCase(Target) = "X" Then
If Len(Range("F14")) = 0 Then
Range("F14").Interior.ColorIndex = 3
End If
End If
End If
If Target.Address = "$F$22" Or Target.Address
= "$F$23" Then
If UCase(Target) = "X" Then
If Len(Range("F16")) = 0 Then
Range("F16").Interior.ColorIndex = 3
End If
End If
End If