Removing responders from a mailing list?

IreneSimmonds

New Member
Joined
Nov 30, 2018
Messages
1
I am very new to using Excel and macro, please be gentle.


I have a spreadsheet of people sent a mail out, with each person identified by a unique number. The column headers are unique number, name, address, postcode.

I have a second sheet of people who responded, containing only their unique identification number.

I want to remove the people in the second sheet from the first sheet, so that I can send a reminder letter.

How would I do this? I'm not asking anyone to write my code, just suggest what tools I could use to do this, so I can learn for myself. I don't want to delete the rows manually and I'm sure it must be possible to automate this, I just don't know how.


Thank you!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Manually is easy with a vlookup formula, filter delete.

To use macro, my script would be
Code:
'Find last row of ID in sheet1


'Find last row of ID in sheet2

'Then someting like this
For each cell2 in Sheet2.range("A1:A" & LastRow2)
          For each cell1 in Sheet1.range("A1:A" & LastRow1)
             if cell1.value=cell2.value then
                delete cell1.entirerow
            End if
          Next cell1
Next cell2
 
Upvote 0

Forum statistics

Threads
1,223,962
Messages
6,175,654
Members
452,664
Latest member
alpserbetli

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