lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I am reading about dealing with text in VBA (the link below) and I see code similar to the one below. My question, this left() function is VBA native or Worksheet function. My guess is VBA native. Thanks a lot.
https://www.excel-easy.com/vba/string-manipulation.html
I am reading about dealing with text in VBA (the link below) and I see code similar to the one below. My question, this left() function is VBA native or Worksheet function. My guess is VBA native. Thanks a lot.
Code:
Sub myleft()
Dim x As String
Dim y As String
x = InputBox("enter phone number")
y = Left(x, 3)
MsgBox "your area code is " & y
End Sub
https://www.excel-easy.com/vba/string-manipulation.html