Macro to check if A#:F# on Sheet1 exists in another sheet, if not add to sheet

EricL89

New Member
Joined
May 29, 2014
Messages
34
Going to try to make this as brief and simple as possible.

My workbook has 3 worksheets, each sheet's data starts at A4, columns are A:F.

I'm trying to make my macro read Sheet1!A4:F4 as a single value, then check if it exists in either Sheet2 or Sheet3 (also A:F, not in a single cell). Essentially, I'm trying to get this:

ABCDEF
TimmyThomasClientSinglePhone831-555-4321

<tbody>
</tbody>

To read the value of A:F as a single value, something like: "Timmy Thomas Client Single Phone 831-555-4321".

If it's not on either sheet, copy A4:F4 then paste it in the next available row on Sheet2. If Sheet1!A4:F4 is found in either Sheet2 or Sheet3, go to Sheet1!A5:F5, and so on until the last row of the data in Sheet1. The last row on each sheet will always be different, not at a predetermined row.

I'm sure this could be accomplished without macros, but this is one part of a larger macro. I appreciate any help you can offer! Thanks!
 

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,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

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