I have a formula I want to turn into a user defined function. The formula is
=LEFT(A1,FIND(" ",A1)-1)
Where cell A1 contains a name like John Smith, the formula will return the
text string "John".
What I want to do is create a user defined function in VBA, so I can use a
formula that might look like:
=FirstName(A1)
Could any kind person out there show me what the VBA code would look like
for this function?