Any chance that one of you fine gentlemen might be able to help me with a small excel/vb issue. I have vb code that time stamps and records a cell value anytime it changes (see below). What I need is for this it to happen every 60 seconds regardless if the value changes or not. Thus, if the value is the same for ten minutes, I would have ten entries each a min apart recording the same value.
Any help would be greatly appreciated.
Clete
Private Sub Worksheet_Calculate()
Sheets("Log").Range("A65536").End(xlUp).Offset(1, 0) = Now
Sheets("Log").Range("A65536").End(xlUp).Offset(0, 1) = Sheets("Log").Range("B2").Value
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$2" Then
Sheets("Log").Range("A65536").End(xlUp).Offset(1, 0) = Now
Sheets("Log").Range("A65536").End(xlUp).Offset(0, 1) = Target.Value
End If
End Sub
Any help would be greatly appreciated.
Clete
Private Sub Worksheet_Calculate()
Sheets("Log").Range("A65536").End(xlUp).Offset(1, 0) = Now
Sheets("Log").Range("A65536").End(xlUp).Offset(0, 1) = Sheets("Log").Range("B2").Value
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$2" Then
Sheets("Log").Range("A65536").End(xlUp).Offset(1, 0) = Now
Sheets("Log").Range("A65536").End(xlUp).Offset(0, 1) = Target.Value
End If
End Sub