I have 3 worksheets in a workbook:
"Source" - contains a 2-column list, first column are numbers (integer) and are all unique (i.e. no 2 rows with the same value), and 2nd column is a name (irrelevant in this exercise)
"Data" - contains a table with multiple columns, first column is a number (also integer but not unique within the column). Other columns are irrelevant in this exercise)
"Results" - blank
For each row in the "Data" sheet, I need to check the value in the 1st column against the first column in the "Source" sheet, if value (i.e. "Data") is found in the "Source" sheet, I need to copy the whole row from the "Data" sheet to the "Results" sheet. In other words, at the end of this exercise, the "Results" sheet will contain all rows from the "Data" sheet where the value in the 1st column is found in the 1st column of "Source".
I perform this on a regular basis and both the "Source" and "Data" sheets always change in size (i.e. now of rows). I would love to get a macro to do this so that I wouldn't need to repeat the tedious exercise, but my knowledge with VBA is extremely limited. Help would be much appreciated.
"Source" - contains a 2-column list, first column are numbers (integer) and are all unique (i.e. no 2 rows with the same value), and 2nd column is a name (irrelevant in this exercise)
"Data" - contains a table with multiple columns, first column is a number (also integer but not unique within the column). Other columns are irrelevant in this exercise)
"Results" - blank
For each row in the "Data" sheet, I need to check the value in the 1st column against the first column in the "Source" sheet, if value (i.e. "Data") is found in the "Source" sheet, I need to copy the whole row from the "Data" sheet to the "Results" sheet. In other words, at the end of this exercise, the "Results" sheet will contain all rows from the "Data" sheet where the value in the 1st column is found in the 1st column of "Source".
I perform this on a regular basis and both the "Source" and "Data" sheets always change in size (i.e. now of rows). I would love to get a macro to do this so that I wouldn't need to repeat the tedious exercise, but my knowledge with VBA is extremely limited. Help would be much appreciated.