Time函數返回當前係統時間。
Time()
Private Sub Constant_demo_Click() msgbox("Line 1: " & Time()) End Sub
當執行函數輸出如下所示:
Line 1: 3:29:15 PM