VBA Macro - Grabbing emails addresses

frankandsteph

New Member
Joined
Aug 22, 2018
Messages
15
Hello All, I am sort of new to VBA and have a very specific macro requirement I need some help with, hopefully I can explain it well.

1. Column A & B has around 1000 lines of data (maybe much more) that contains blank/crappy data and valid data
2. Column A has a persons name 1 cell above the email
3. Column A has other data, not name or email, that are use less and could be blank
4. Column B has data related to the name/email called "DOB: MM/DD/YYYY"
5. Column B DOB could be in one of two cells directly next to (Column B) name (Column A) or one cell over and up from name


Column A..........Column B
<blank>blank..................blank
blank..................DOB: MM/DD/YYY
Jim Brown............blank <blank>
jim@comcast.net..blank<blank>


or

Column A..................Column B
<blank><blank>blank..........................blank
Jim Brown................DOB: MM/DD/YYY
jim@comcast.net..........blank <blank>


I would like to extract these 3 parts to H,I and J columns and loop all the way down until there is no more email addresses.
<blank>Blank could actually be blank or simply data that is not needed. DOB is always either over one or over one up one from name, Name is always up one from email address

Does this make sense?
Frank</blank></blank></blank></blank></blank></blank></blank>
 
Last edited:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
One thing I forgot, if name or DOB is missing just return email address!

If this is complicated could someone point me to a person who could do this for compensation.
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,924
Members
448,533
Latest member
thietbibeboiwasaco

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