lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I want to ask user to enter address for example 100 main street, and then my code will split the number and street name.
I tried the following but got error message. I am thinking of array must be use or do you think there is easier way to do that
thank you very much
I want to ask user to enter address for example 100 main street, and then my code will split the number and street name.
I tried the following but got error message. I am thinking of array must be use or do you think there is easier way to do that
thank you very much
Code:
Sub myfirst()
Dim x As String
x = InputBox("enter your address")
MsgBox Split(x)
End Sub