Macro that finds Names and DOB over 2 Workbooks

benjinorth

New Member
Joined
Jul 25, 2016
Messages
13
Hi Guys,

I've hit a brick wall...

I need help making a macro button in WB1 to open WB2, then to find and match a customers information (First Name, Last Name and DOB) and then mark each match as a "YES" or as "Blank" after the last cell on WB1

Here's an example of the workbooks.

WB1

JoeBloggsrandom infomisc infomale04/07/1986
JaneSmithrandom infomisc infofemale08/07/1975
FredAstairrandom infomisc infomale12/04/1994

<tbody>
</tbody>






WB2

JoeBloggs04/07/1986
JaneSmith08/07/1975
FredAstair12/04/1994

<tbody>
</tbody>







In WB1 you can see the DOB is separated by columns with other information
as in WB2 the information I require is grouped together.

I can't move cells or columns around as it is part of a mail merge and other existing macros.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,336
Messages
6,124,330
Members
449,155
Latest member
ravioli44

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