vba timestamp — milliseconds

The solution for “vba timestamp — milliseconds” can be found here. The following code will assist you in solving the problem.

Public Function TimeInMS() As String

‘The error is +/- 15 ms
TimeInMS = Strings.Format(Now, “dd-MMM-yyyy HH:nn:ss”) & “.” _
& Strings.Right(Strings.Format(Timer, “#0.00”), 2)

End Function

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts