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

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Joe[/TD]
[TD]Bloggs[/TD]
[TD]random info[/TD]
[TD]misc info[/TD]
[TD]male[/TD]
[TD]04/07/1986[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]Smith[/TD]
[TD]random info[/TD]
[TD]misc info[/TD]
[TD]female[/TD]
[TD]08/07/1975[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Astair[/TD]
[TD]random info[/TD]
[TD]misc info[/TD]
[TD]male[/TD]
[TD]12/04/1994[/TD]
[/TR]
</tbody>[/TABLE]






WB2

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Joe[/TD]
[TD]Bloggs[/TD]
[TD]04/07/1986[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]Smith[/TD]
[TD]08/07/1975[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Astair[/TD]
[TD]12/04/1994[/TD]
[/TR]
</tbody>[/TABLE]







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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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