I am trying to get this code to spit out the data in a cell within the same workbook but a different worksheet --> Sheet ("SpeedLog") instead of the message box.
The time element works fine within the routine, but I need help converting from a message box to a value in a cell:
In addition, I only the time not the commentary:
Lastly, I am trying to use this other code snippet to be sure I fill the next cell which is empty with only the calculated data:
I think this should work
Any thoughts would be appreciated...
The time element works fine within the routine, but I need help converting from a message box to a value in a cell:
Code:
MsgBox "This CVTY Speed Search was completed in" & " " & (DateDiff("s", start_time, end_time)) & " " & "seconds."
In addition, I only the time not the commentary:
Code:
(DateDiff("s", start_time, end_time))
Lastly, I am trying to use this other code snippet to be sure I fill the next cell which is empty with only the calculated data:
I think this should work
Code:
Sheets("SpeedLog").Activate
Sheets("SpeedLog.Range("C1").End(xlDown).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Any thoughts would be appreciated...