Hi,
i have try to code as below, but seem not reflecting.
I want column A14 to a44, if any value in number for this column then the "B" will update the time.
Next will lock the cell that has the value and color yellow.
I need help on this.
Private Sub CommandButton1_Click()
If Range("A14:A44") Is Nothing Then
On Error Resume Next
If Target.Value = "" Then
Target.Offset(0, 1) = ""
Else
Target.Offset(0, 1).Value = Format("HH:mm:ss")
End If
End If
End Sub
i have try to code as below, but seem not reflecting.
I want column A14 to a44, if any value in number for this column then the "B" will update the time.
Next will lock the cell that has the value and color yellow.
I need help on this.
Private Sub CommandButton1_Click()
If Range("A14:A44") Is Nothing Then
On Error Resume Next
If Target.Value = "" Then
Target.Offset(0, 1) = ""
Else
Target.Offset(0, 1).Value = Format("HH:mm:ss")
End If
End If
End Sub