Sub foo()
Dim LastName As String
Dim Temp
Temp = Split(ActiveCell)
LastName = Temp(UBound(Temp))
FirstName = Temp(LBound(Temp))
Debug.Print LastName, FirstName
End Sub
--
Regards,
Tom Ogilvy
"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