lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I can write msgbox with ( ) or without like the code below? Why I can do that? This function is not returning any value then I thought it should not take ( ),
Also I noticed that, I defined X as Int. Then whenever I type x as small letter, excel change it to big X. Does that mean variable are not case sensitive? Thank you so much.
I can write msgbox with ( ) or without like the code below? Why I can do that? This function is not returning any value then I thought it should not take ( ),
Also I noticed that, I defined X as Int. Then whenever I type x as small letter, excel change it to big X. Does that mean variable are not case sensitive? Thank you so much.
Code:
Sub mysecondvba()
'++++++++
'this to demo using variables
'++++++++
Dim X As Integer
X = 10
MsgBox (X)
MsgBox X
End Sub