VBA Code:
Private Sub UserForm_Initialize()
Call CallTime_Msg
lb_hello.Caption = msg
lb_tec.Caption = Tec
End Sub
Sub CallTime_Msg()
Dim mHour As Integer
Dim msg As String
mHour = hour(Now)
If mHour < 12 Then
msg = "Good Morning"
ElseIf mHour < 18 Then
msg = "Good Afternoon"
Else
msg = "Good Evening"
End If
End Sub
Error:
"Expected Array" (???)