Re: $$Excel-Macros$$ split function in vba

2013-06-15 Thread VBA VABZ
REPT(" ",125)))-100,125)) > > > --- On *Sat, 6/15/13, De Premor * wrote: > > > From: De Premor > Subject: Re: $$Excel-Macros$$ split function in vba > To: excel-macros@googlegroups.com > Date: Saturday, June 15, 2013, 2:54 PM > > > Function ExtractEma

Re: $$Excel-Macros$$ split function in vba

2013-06-15 Thread ravinder negi
00,125)) --- On Sat, 6/15/13, De Premor wrote: From: De Premor Subject: Re: $$Excel-Macros$$ split function in vba To: excel-macros@googlegroups.com Date: Saturday, June 15, 2013, 2:54 PM Function ExtractEmail(Sentence As String) As String     Dim Word     For

Re: $$Excel-Macros$$ split function in vba

2013-06-15 Thread De Premor
Function ExtractEmail(Sentence As String) As String Dim Word For Each Word In Split(Sentence, " ") If InStr(1, Word, "@") > 0 Then ExtractEmail = Word Next End Function For example: in case we have a sentence like "*please send mail to some...@example.com or futher info*" the