I want the date in column F to update when I update information in column G.
This piece of VBA isn't working for me...any ideas on how to rewrite it?
Case Is = 7
If Target.Offset(, -1) = "" Then Target.Offset(, -1) = Date
Here is entire code on sheet.
This piece of VBA isn't working for me...any ideas on how to rewrite it?
Case Is = 7
If Target.Offset(, -1) = "" Then Target.Offset(, -1) = Date
Here is entire code on sheet.
Code:
Option Compare Text
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A:A,C:C")) Is Nothing Then Exit Sub
Dim LastRow As Long
LastRow = Sheets("Open").Range("C" & Rows.Count).End(xlUp).Row + 1
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
Select Case Target.Column
Case Is = 1
If Target = "X" And Target.Offset(, 10) = "" Then
Target.Offset(0, 10) = Date
Rows(Target.Row).EntireRow.Copy Sheets("Closed").Cells(Sheets("Closed").Rows.Count, "A").End(xlUp).Offset(1, 0)
ElseIf Target = "" Then
Rows(Target.Row).EntireRow.Copy Sheets("Open").Cells(LastRow, 1)
End If
Case Is = 3
If Target.Offset(, -1) = "" Then Target.Offset(, -1) = Date
Case Is = 7
If Target.Offset(, -1) = "" Then Target.Offset(, -1) = Date
End Select
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
End Sub
Last edited by a moderator: