Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extract numbers from a code | Excel Worksheet Functions | |||
can i link a variable cost code with a variable sum | Excel Discussion (Misc queries) | |||
Extract a number from a variable text string | Excel Discussion (Misc queries) | |||
Code Post: Extract Trendline coefficients | Excel Discussion (Misc queries) | |||
Extract a cells format and apply to a variable | Excel Programming |