Something like:
If Not IsNumeric(Left(var, 1)) Then newvar = Left("b34 s", InStr(1, var, "
") - 1)
This assumes that the variable "var" always contains a space if it begins
with a letter.
--
Vasant
"rjtaylor " wrote in message
...
Hi I need to have vba look at a var and determine if the first character
is number or letter and if letter then make a new var from begging to
first space. Can someone help thanks in advance
Rod Taylor
---
Message posted from http://www.ExcelForum.com/