lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I have read that if a function in vba returns something then it should be call using () for example
functionName()
I tried Date() which return a date but when I type it Excel removed () for me and my code look like this
Why excel did not keep () because this function return date? Thank you so much
I have read that if a function in vba returns something then it should be call using () for example
functionName()
I tried Date() which return a date but when I type it Excel removed () for me and my code look like this
Code:
Sub mydate()
MsgBox Date
End Sub
Why excel did not keep () because this function return date? Thank you so much