Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Select Case Target.Row
Case 60000: Target(-59998, 2).Select
End Select
If Target.Column = 1 Then
Target.Offset(0, 1) = Now
End If
End Sub
謝謝協助,我用以下的程式解決此問題,給有需要的人參考參考~
Public Function TimeInMS() As String
TimeInMS = Strings.Format(Now, "dd-MMM-yyyy HH:nn:ss") & "." & Strings.Right(Strings.Format(Timer, "#0.00"), 2)
End Function