here's one way if the name is in a1
dim fname as string
sub fname()
Range("a2").Value = Left(Range("a1"), InStr(1, Range("a1"), " ") - 1)
end sub
--
Gary
"mikeburg" wrote in
message ...
Wonderful!
How would you extract the first name using the simplest VBA code?
Thanks, mikeburg
--
mikeburg
------------------------------------------------------------------------
mikeburg's Profile:
http://www.excelforum.com/member.php...o&userid=24581
View this thread: http://www.excelforum.com/showthread...hreadid=503728