Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Jada Mohammad   on Mar 14 In MS Office Category.

  
Question Answered By: Abella Martin   on Mar 14

I prefer to use string functions like

-mid
-instr
-find
-replace

etc.

For example

Private Function FirstName(CellData as String)
FirstName = Mid(CellData,1,Instr(1,CellData,Chr(32)))
End Function

But one question. What if the name is "Michael J. Fox" or etc?

Maybe it should start to search from the end?

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Excel 2002 UDF Or get search suggestion and latest updates.


Tagged: