That was not what you asked for in your original request (hundredths of seconds)!it works for hh:mm:ss but I want to get to hundredths of a second, on a spreadsheet this would be formatted as hh:mm:ss.000
thanks
'test data
'22/03/2024 10:22:28.260
'45373.4322715278 (numeric value)
Sub testVBAvsExcel()
Dim t As String
t = Format(45373.4322715278, "hh:mm:ss.000")
Debug.Print "Using VBA Format: ", t
t = WorksheetFunction.Text(45373.4322715278, "hh:mm:ss.000")
Debug.Print "Using Excel Text: ", t
End Sub