Highlighting Email address responders

mas_lerdanch

Board Regular
Joined
Jun 25, 2007
Messages
64
I have two sheets in the same workbook, one has the original list of members emails that the questionaire was sent to and one has the list of members and emails that have responded. using this information I want to produce a third sheet that compares the two and displays a list of non responders email addresses so they can be reminded in the future.

Please help

Mas
 

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Like this??
Code:
Sub FindMe()
Dim cl As Range
Dim C As Range
For Each cl In Sheet2.Range("A2:A500")
Set C = Sheet1.Range("A2:A200").Find(cl.Text, LookIn:=xlValues)
If Not C Is Nothing Then
  cl.EntireRow.Copy Sheet3.Range("A" & Cells(Rows.Count, "A").End(xlUp).Row + 1)
Next cl
End Sub
lenze
 

mas_lerdanch

Board Regular
Joined
Jun 25, 2007
Messages
64
Looks great -thanks. Just not sure with my limited excel knowledge I'll be able to employ it. Any pointers please.
 

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Place it in a regular module. Open the VBE (ALT+F11) and choose Insert>Module. You may have to change your sheet references. Example: If your 1st sheet is Named "Mary" Then you can replace Sheet1 in the code with Sheets("Mary"). To run, open the Macro dialog (ALT+F8), select the nacro and click Run

lenze

lenze
 

mas_lerdanch

Board Regular
Joined
Jun 25, 2007
Messages
64
Thanks, I'll give it a go first thing :) 2234GMT here
thanks again, I'll let you know how I go.
Sam
 

Forum statistics

Threads
1,081,556
Messages
5,359,547
Members
400,533
Latest member
fpenning

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top