Help please!
In Column A - if I input a date (other than today), then make my selection in Column F, the date that I had input in Column A does not hold. Example:
- Today is 5/4
- I put 5/3 in Column A.
- I select "Brookhaven" in Column F
- The date in Column A changes to 5/4
- I can go back and change Column A back to 5/3, but is there a way to make it stay 5/3 without going back?
Current code looks like this:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Me.Range("F6:F49"), Target) Is Nothing Then
If Target = "" Then
Target.Offset(, -5).Value = ""
Target.Offset(, 2) = ""
ElseIf Target = " " Then
Target.Offset(, -5).Value = ""
Target.Offset(, 2) = ""
Else
Target.Offset(, -5).Value = Now
Target.Offset(, 2).Value2 = Now + 14
End If
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Me.Range("F6:F49"), Target) Is Nothing Then
If Target = "" Then
Target.Offset(, -5).Value = ""
Target.Offset(, 2) = ""
ElseIf Target = " " Then
Target.Offset(, -5).Value = ""
Target.Offset(, 2) = ""
Else
Target.Offset(, -5).Value = Now
Target.Offset(, 2).Value2 = Now + 14
End If
End If
End Sub