[VBA]计算宏运行所用时间

Sub 计算宏运行所用时间()
    
    Dim tt As Single
    tt = Timer
    '宏名字
    MsgBox "ok,用时" & Timer - tt & "秒!"
    
End Sub

 

 

转自:https://blog.csdn.net/henryghx/article/details/8806333

posted @ 2021-03-07 21:22  aliensky  阅读(800)  评论(0编辑  收藏  举报