Change by val target as range to ignore blank and 0 value cells
问题 Private Sub Worksheet_Change(ByVal Target As Range) Dim c As Range For Each c In Target.Cells **If c.Value <> Empty Or c.Value = 0 Then End If** If c.Column = 11 Then c.Offset(0, -1).Value = Now() End If Next c End Sub I have the above code working well except I am trying to add the bolded code to ignore any blank cells (could also be the option of ignoring 0 value cells, but not necessary). Thanks 回答1: You seem to have your two arguments going in different ways, in that your lumping together