<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2509167754737584590.post991389705082221801..comments</id><updated>2012-02-09T14:52:44.918+05:30</updated><category term='Excel Addins'/><category term='countif two criteria'/><category term='Hide cell contents before printing'/><category term='Sum Top 5 values in Unsorted Range'/><category term='Forcing users to use updated version'/><category term='Macros in Excel'/><category term='countif array'/><category term='PMT Function in Excel'/><category term='Test if workbook is open or not'/><category term='Formating Numbers in Excel'/><category term='Symbol Check Mark'/><category term='Disable Cut Copy Paste in Excel'/><category term='Pivot Tables'/><category term='Range Name Excel'/><category term='calculating age'/><category term='Custom Functions'/><category term='Excel Vlookup Function'/><category term='subtotal function excel'/><category term='multiple countif'/><category term='Deploy Macros Found Elsewhere'/><category term='Get Number From String'/><category term='countif with multiple criteria'/><category term='Send email with VBA'/><category term='Excel Currency Format'/><category term='Excel Macros'/><category term='Excel Formulas'/><category term='sumif multiple'/><category term='subtotal in excel'/><category term='Auto Open Macro'/><category term='Extract Number From String'/><category term='Automating Tasks in Excel'/><category term='Adding non printing information to your worksheet'/><category term='Find Duplicate'/><category term='Hardware Locking for Excel Workbook'/><category term='Excel Date Picker'/><category term='Profit and Loss report using Pivot Tables'/><category term='Excel Last Row'/><category term='Find Last Row'/><category term='Spell Currency'/><category term='Extract Number From Text'/><category term='EMI Calculator'/><category term='Macro Last Row'/><category term='File Open'/><category term='countif multiple conditions'/><category term='Excel Pop up Calendar'/><category term='Wingdings Check Mark with double click'/><category term='Sorting Dates by Birthday'/><category term='Disable right click menu'/><category term='Working with date function'/><category term='excel subtotals'/><category term='Excel Kay Board Shortcuts'/><category term='Defined Names'/><category term='Excel Closest Match'/><category term='Indian Style Comma Separation for numbers'/><category term='Converting Text to date'/><category term='Convert Numbers to Words'/><category term='Working with Data Range'/><category term='Show Developer Tab'/><category term='Logging User Activity'/><category term='Numbers to Text'/><category term='VBA Last Row'/><category term='Countif Multiple Criteria'/><category term='Email Address Extract'/><category term='Add Spin Buttons ActiveX Controls'/><category term='Visual Basic Grammar'/><category term='Formating Cells in Excel'/><category term='Making EMI Calculator'/><category term='Excel Number Format'/><category term='sumif multiple criteria'/><category term='subtotals in excel'/><category term='multiple sumif criteria'/><category term='Remove Duplicate'/><category term='Learn Excel VBA'/><category term='Forcing users to Enable Macros'/><category term='subtotal excel'/><category term='Text To Numbers'/><category term='SpellCurr()'/><title type='text'>Comments on Yogesh Gupta's Excel Tips: Excel Macro : Email Address Extract from String</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.yogeshguptaonline.com/feeds/991389705082221801/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_3QrPv-CwOcc/StCm3VNBEOI/AAAAAAAAAIg/4ahMTa1Ps5c/S220/Yogesh.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-8869018001842562303</id><published>2012-02-09T14:52:44.918+05:30</published><updated>2012-02-09T14:52:44.918+05:30</updated><title type='text'>Wonderful. Thanks a lot</title><content type='html'>Wonderful. Thanks a lot</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/8869018001842562303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/8869018001842562303'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1328779364918#c8869018001842562303' title=''/><author><name>Vikas</name><uri>http://www.blogger.com/profile/14018905296858082124</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/__AaT-VZXlx8/SY0BnOSx-cI/AAAAAAAAAow/BNS7cHyrgN8/S220/vk.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1510558175'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-5980382171802625527</id><published>2011-04-18T19:27:42.907+05:30</published><updated>2011-04-18T19:27:42.907+05:30</updated><title type='text'>I have a list of company websites that i would lik...</title><content type='html'>I have a list of company websites that i would like to extract the email addresses. Anyone would be able to explain how this is done in Excel? Or of this is even possible?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/5980382171802625527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/5980382171802625527'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1303135062907#c5980382171802625527' title=''/><author><name>saufi</name><uri>http://www.blogger.com/profile/08108086026147736760</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-634664407'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-3339119810465402159</id><published>2011-03-28T02:24:26.782+05:30</published><updated>2011-03-28T02:24:26.782+05:30</updated><title type='text'>&lt;a href="http://kyivstar.name" rel="nofollow"&gt; &lt;/a...</title><content type='html'>&lt;a href="http://kyivstar.name" rel="nofollow"&gt; &lt;/a&gt;&lt;a href="http://kyivstar.in" rel="nofollow"&gt; &lt;/a&gt;&lt;a href="http://consys.com.ua" rel="nofollow"&gt; &lt;/a&gt;&lt;a href="http://mymechanictoolsets.net" rel="nofollow"&gt; &lt;/a&gt;Nice thread! Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/3339119810465402159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/3339119810465402159'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1301259266782#c3339119810465402159' title=''/><author><name>autowebsite</name><uri>http://autowebsite.livejournal.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1964886202'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-8090648477188964280</id><published>2010-08-07T17:35:43.321+05:30</published><updated>2010-08-07T17:35:43.321+05:30</updated><title type='text'>Hi Niku

I do not have solution for this.

Regards...</title><content type='html'>Hi Niku&lt;br /&gt;&lt;br /&gt;I do not have solution for this.&lt;br /&gt;&lt;br /&gt;Regards</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/8090648477188964280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/8090648477188964280'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1281182743321#c8090648477188964280' title=''/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_3QrPv-CwOcc/StCm3VNBEOI/AAAAAAAAAIg/4ahMTa1Ps5c/S220/Yogesh.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1113289490'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-6791242693418359266</id><published>2010-08-06T12:16:53.617+05:30</published><updated>2010-08-06T12:16:53.617+05:30</updated><title type='text'>Thanks for your reply 

I m clearing my question I...</title><content type='html'>Thanks for your reply &lt;br /&gt;&lt;br /&gt;I m clearing my question I have a file in which details of customers available eg.cust name mobile number etc.. one file for each customer and i have to make MIS of that pdf files we have generated online in one excel file.&lt;br /&gt;so any solution for that looking for early reply</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/6791242693418359266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/6791242693418359266'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1281077213617#c6791242693418359266' title=''/><author><name>Niku</name><uri>http://www.blogger.com/profile/05536863158245069289</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-448924942'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-2081632076335681763</id><published>2010-08-04T19:49:45.567+05:30</published><updated>2010-08-04T19:49:45.567+05:30</updated><title type='text'>Hi Niku

I am not clear about your question. 

If ...</title><content type='html'>Hi Niku&lt;br /&gt;&lt;br /&gt;I am not clear about your question. &lt;br /&gt;&lt;br /&gt;If you want to read and update the content of the PDF files into Excel Sheet. Then I do not have solution for you. &lt;br /&gt;&lt;br /&gt;If you just want the list of the files to be updated then it can be done with the help of VBA.&lt;br /&gt;&lt;br /&gt;Pls revert back.&lt;br /&gt;&lt;br /&gt;Regards</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/2081632076335681763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/2081632076335681763'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1280931585567#c2081632076335681763' title=''/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_3QrPv-CwOcc/StCm3VNBEOI/AAAAAAAAAIg/4ahMTa1Ps5c/S220/Yogesh.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1113289490'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-3166604379690562801</id><published>2010-08-04T17:45:15.049+05:30</published><updated>2010-08-04T17:45:15.049+05:30</updated><title type='text'>Hi Yogesh,

Your blog is awsome to excel learners....</title><content type='html'>Hi Yogesh,&lt;br /&gt;&lt;br /&gt;Your blog is awsome to excel learners.&lt;br /&gt;I have 300+ pdf files which i have to load into one excel sheet about its contents can u show me a formula or a vb code to create one excel file having details of all pdf files..&lt;br /&gt;&lt;br /&gt;Is there any way to do that&lt;br /&gt;Hope you understand its urgency!!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/3166604379690562801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/3166604379690562801'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1280924115049#c3166604379690562801' title=''/><author><name>Niku</name><uri>http://www.blogger.com/profile/05536863158245069289</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-448924942'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-1202847303121539838</id><published>2009-11-19T14:43:38.819+05:30</published><updated>2009-11-19T14:43:38.819+05:30</updated><title type='text'>Though I had included credits to you in the downlo...</title><content type='html'>Though I had included credits to you in the download file but not mentined about the differnece between two.&lt;br /&gt;&lt;br /&gt;Now I have mentioned the difference and updated the file at download link.&lt;br /&gt;&lt;br /&gt;Now some thing beyond this post. I want to invite you for guest post on my blog. Any topic or any tips of your choice. Let me know if you are okay with this. I will be honored if you accept my invite.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/1202847303121539838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/1202847303121539838'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1258622018819#c1202847303121539838' title=''/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_3QrPv-CwOcc/StCm3VNBEOI/AAAAAAAAAIg/4ahMTa1Ps5c/S220/Yogesh.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1113289490'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-906319698756370215</id><published>2009-11-19T14:20:25.034+05:30</published><updated>2009-11-19T14:20:25.034+05:30</updated><title type='text'>Good catch! That is what I get for making last min...</title><content type='html'>Good catch! That is what I get for making last minute changes and not testing them. I&amp;#39;m glad spotted the problem and were able to figure out the solution. Thanks.&lt;br /&gt;&lt;br /&gt;Just a thought... as long as you decided to include my code in the download file, you might want to include a comment as to what the difference is between your code and mine, just in case someone reads your blog entry and downloads the file directly without reading the comments.&lt;br /&gt;&lt;br /&gt;Rick Rothstein (MVP - Excel)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/906319698756370215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/906319698756370215'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1258620625034#c906319698756370215' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-7012308254226054354</id><published>2009-11-19T11:14:23.844+05:30</published><updated>2009-11-19T11:14:23.844+05:30</updated><title type='text'>Hi Rick

Thanks for your inputs. I tested the code...</title><content type='html'>Hi Rick&lt;br /&gt;&lt;br /&gt;Thanks for your inputs. I tested the code and feel that there is some gap. After the first for next blok, &amp;quot;AtSign&amp;quot; variable needs to be recalculated by using statement &lt;br /&gt;AtSign = InStr(S, &amp;quot;@&amp;quot;)&lt;br /&gt;&lt;br /&gt;It works fine after this change.&lt;br /&gt;&lt;br /&gt;I have updated the file at download link in the original post to include your code after this correction.&lt;br /&gt;&lt;br /&gt;Regards//Yogesh Gupta</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/7012308254226054354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/7012308254226054354'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1258609463844#c7012308254226054354' title=''/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_3QrPv-CwOcc/StCm3VNBEOI/AAAAAAAAAIg/4ahMTa1Ps5c/S220/Yogesh.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1113289490'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-4414147048081639087</id><published>2009-11-19T02:06:10.068+05:30</published><updated>2009-11-19T02:06:10.068+05:30</updated><title type='text'>Here is a macro that is a little more robust than ...</title><content type='html'>Here is a macro that is a little more robust than the one you posted... instead of using just a blank space to delimit the email address from the rest of the text, it uses any character that is invalid in an email address to delimit the email address from the rest of the text. That way, you will be able to retrieve the email address if it is, for example, surrounded by parentheses, quote marks, etc. You will also be able to find the email address if it located at the end of a sentence (email addresses cannot start or end with a dot). Here is the code...&lt;br /&gt;&lt;br /&gt;Function GetEmailAddress(ByVal S As String) As String&lt;br /&gt;  Dim X As Long, AtSign As Long&lt;br /&gt;  Dim Locale As String, DomainPart As String&lt;br /&gt;  Locale = &amp;quot;[A-Za-z0-9.!#$%&amp;amp;&amp;#39;*/=?^_`{|}~+-]&amp;quot;&lt;br /&gt;  Domain = &amp;quot;[A-Za-z0-9._-]&amp;quot;&lt;br /&gt;  AtSign = InStr(S, &amp;quot;@&amp;quot;)&lt;br /&gt;  For X = AtSign To 1 Step -1&lt;br /&gt;    If Not Mid(&amp;quot; &amp;quot; &amp;amp; S, X, 1) Like Locale Then&lt;br /&gt;      S = Mid(S, X)&lt;br /&gt;      If Left(S, 1) = &amp;quot;.&amp;quot; Then S = Mid(S, 2)&lt;br /&gt;      Exit For&lt;br /&gt;    End If&lt;br /&gt;  Next&lt;br /&gt;  For X = AtSign + 1 To Len(S) + 1&lt;br /&gt;    If Not Mid(S &amp;amp; &amp;quot; &amp;quot;, X, 1) Like Domain Then&lt;br /&gt;      S = Left(S, X - 1)&lt;br /&gt;      If Right(S, 1) = &amp;quot;.&amp;quot; Then S = Left(S, Len(S) - 1)&lt;br /&gt;      GetEmailAddress = S&lt;br /&gt;      Exit For&lt;br /&gt;    End If&lt;br /&gt;  Next&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Also note that I changed the argument&amp;#39;s data type from Range to String... doing this still allows you to pass a cell reference into it when using it as a UDF, but it also allows you to pass it a simple text string as well (useful if you want to use the function in a non-UDF setting).&lt;br /&gt;&lt;br /&gt;Rick Rothstein (MVP - Excel)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/4414147048081639087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/4414147048081639087'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1258576570068#c4414147048081639087' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-5894184998278014973</id><published>2009-11-18T23:09:13.866+05:30</published><updated>2009-11-18T23:09:13.866+05:30</updated><title type='text'>Hello Rick

I have not made any change in the code...</title><content type='html'>Hello Rick&lt;br /&gt;&lt;br /&gt;I have not made any change in the code display. Could not understand why is it behaving like this. You can download the excel file having the code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for your formula input. &lt;br /&gt;&lt;br /&gt;Regards//Yogesh Gupta</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/5894184998278014973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/5894184998278014973'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1258565953866#c5894184998278014973' title=''/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_3QrPv-CwOcc/StCm3VNBEOI/AAAAAAAAAIg/4ahMTa1Ps5c/S220/Yogesh.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1113289490'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-3040809501822535679</id><published>2009-11-18T21:00:38.442+05:30</published><updated>2009-11-18T21:00:38.442+05:30</updated><title type='text'>I just noticed that my formula has **four** blank ...</title><content type='html'>I just noticed that my formula has **four** blank spaces in it, not three and it looks like your display word wrapped it at the space I forgot to count. However, that should not matter since when I copy the formula from your webpage, it pastes correctly into Excel&amp;#39;s Formula Bar as a single continuous line.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/3040809501822535679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/3040809501822535679'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1258558238442#c3040809501822535679' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-17512934355810089</id><published>2009-11-18T20:34:44.178+05:30</published><updated>2009-11-18T20:34:44.178+05:30</updated><title type='text'>Here is a worksheet formula that will extract an e...</title><content type='html'>Here is a worksheet formula that will extract an email address from the text in a cell...&lt;br /&gt;&lt;br /&gt;=TRIM(RIGHT(SUBSTITUTE(LEFT(A1,FIND(&amp;quot;@&amp;quot;,A1)-1),&amp;quot; &amp;quot;,REPT(&amp;quot; &amp;quot;,99)),99))&amp;amp;MID(A1,FIND(&amp;quot;@&amp;quot;,A1),FIND(&amp;quot; &amp;quot;,A1&amp;amp;&amp;quot; &amp;quot;,FIND(&amp;quot;@&amp;quot;,A1))-FIND(&amp;quot;@&amp;quot;,A1))&lt;br /&gt;&lt;br /&gt;In case your code displayer ends up breaking the line at blank spaces, I just want to point out that there are three blank spaces surrounded by quote marks in the formula... one on each side of the REPT function and one after the third FIND function.&lt;br /&gt;&lt;br /&gt;Rick Rothstein (MVP - Excel)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/17512934355810089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/17512934355810089'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1258556684178#c17512934355810089' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-7053452139796810225</id><published>2009-11-18T20:28:51.814+05:30</published><updated>2009-11-18T20:28:51.814+05:30</updated><title type='text'>Did you change your code displayer? I don&amp;#39;t re...</title><content type='html'>Did you change your code displayer? I don&amp;#39;t remember this happening before, but when I copy/pasted your code into my copy of XL2003, everything was on a single line (that is, there were no line feeds between the individual statements).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/7053452139796810225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2509167754737584590/991389705082221801/comments/default/7053452139796810225'/><link rel='alternate' type='text/html' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html?showComment=1258556331814#c7053452139796810225' title=''/><author><name>Rick</name><uri>http://www.blogger.com/profile/07572190007880814311</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' ref='tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801' source='http://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213274641'/></entry></feed>
