lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I trying to understand how to call functions which return value and that which do not. I thought msgbox is a function that return value, so I tried to assign that value to a variable x but when I msgbox out x the value of x was 1? Any idea why. Thank you so much.
I trying to understand how to call functions which return value and that which do not. I thought msgbox is a function that return value, so I tried to assign that value to a variable x but when I msgbox out x the value of x was 1? Any idea why. Thank you so much.
Code:
Sub wk_open()
Dim x As Integer
x = MsgBox(5)
MsgBox (x)
End Sub