alisonthom
asked on
Excel VBA - how to test if last character in a cell is a number
Hi,
I would be very grateful if you could suggest how I can use VBA to ascertain if the last character in a cell is a number (0 through to 9).
Many thanks in advance
Alison
I would be very grateful if you could suggest how I can use VBA to ascertain if the last character in a cell is a number (0 through to 9).
Many thanks in advance
Alison
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
You could also use
result = Selection Like "*#"
Regards
You could also use
result = Selection Like "*#"
Regards
ASKER
Thank you so much for the quick and very helpful answer.
The other response is also most appreciated.
Thanks
Alison
The other response is also most appreciated.
Thanks
Alison
Open in new window