Mid
Hi Mike
I believe you will need a VBA function of some sort for this. Before I
suggest one, will these cases ever appear:
Lowercase letters: 0500531-1a
Alpha characters not gathered: 0500531-1A7B
Trailing numbers: 0500531-1A45
?
Best wishes Harald
"Mike Archer" skrev i melding
...
Hello.
I need to set a variable to the be all of the ending alpha
characters in a string.
The following will work for part numbers ending in 1 alpha
character:
MyVar = Mid(PartNumber, Len(PartNumber), 1)
If PartNumber = "0500531-1A", I need MyVar to be "A"
(easy). But if PartNumber = "0500531-1AB", I need MyVar
to be "AB". Does InStr have the ability to look for
alpha, or will I need a subroutine?
TIA,
Mike
|