Extracting email addresses from worksheets

SuperFerret

Well-known Member
Joined
Mar 2, 2009
Messages
515
I have a spreadsheet which I am trying to update, each supplier has their own tab and the contact details are stored on the tab, above all the invoice figures. However, the email addresses can be pretty much anywhere on the worksheet so I can't simply specify a small range to loop through.

Can anyone suggest a way of finding and extracting all the email addresses (anything with an @ symbol) and pasting them into a new sheet?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Play around with:
Code:
On Error Resume Next 
For i = 1 to worksheets.count
 With Sheets(i)
    Some_variable_of_type_range = .Cells.Find(what:="@", LookIn:=xlValues, lookat:=xlPart)
    Sheets("Summary").Range("A" & i) = Some_variable_of_type_range.Value
  End With
Next i
On Error Goto 0
May need to play around with the On Error part if an email address doesn't exist on the page or can't be found
 
Upvote 0
Ok, so I've played about with the snippet of code you provided...but I can't get my head around what it's doing and how to amend it to what I need.

I've not done many loops through sheets, so I'm at a loss what to do next.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top