lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
The code below worsk but I wonder why vBA does not have Time type. Is not Date and Time format different?
I defined x here as a Date but then assign Time function to it. It did work but wondering why there is not Time type. Thank you very much
The code below worsk but I wonder why vBA does not have Time type. Is not Date and Time format different?
I defined x here as a Date but then assign Time function to it. It did work but wondering why there is not Time type. Thank you very much
Code:
Sub mytime()
Dim xtime As Date
xtime = Time
MsgBox xtime
End Sub