Take a look at the MID function. It's available in both the worksheet and in VBA. The LEFT and RIGHT functions are also useful.
I have a string like
AAJDGYE030000460
How can I remove the first character in a macro?
I need to look at the second,third, and forth character
Bob
Take a look at the MID function. It's available in both the worksheet and in VBA. The LEFT and RIGHT functions are also useful.
Please do not U2U (private message) me directly for questions that should be posted to the forum; any such U2Us will be ignored.
will remove the first character.VB:=RIGHT(A1,LEN(A1)-1)
will give the second. Change 2 to 3/4 for others.VB:=mid(A1,2,1)
will give 2nd to 4th.VB:=mid(A1,2,3)
Thanks....
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks