| Blog Office VBA | Blog Excel | Blog Access | Blog Infochart |
Saber expressar o tempo em milisegundos pode ser importante em qualquer aplicação VBA. Como fazê-lo?
Private Type SYSTEMTIME
wYear As IntegerwMonth As IntegerwDayOfWeek As IntegerwDay As IntegerwHour As IntegerwMinute As IntegerwSecond As IntegerwMilliseconds As Integer
End TypePrivate Declare Sub GetSystemTime Lib "kernel32" _(lpSystemTime As SYSTEMTIME)Public Function TimeToMillisecond() As String
Dim tSystem As SYSTEMTIMEDim sRetOn Error Resume NextGetSystemTime tSystemsRet = Hour(Now) & ":" & Minute(Now) & ":" & Second(Now) & _":" & tSystem.wMillisecondsTimeToMillisecond = sRet
End Function
Tags: Tips, milisegundos, miliseconds, API, LIB, kernel32, DLL, time, VBA,
Nenhum comentário:
Postar um comentário