I have 2 sheets in the same workbook where I need to exclude/delete rows in one sheet when the values are not found in the second sheet. The two sheets are imported from downloaded workbooks. The result is a workbook that has two sheets where Sheet1 may have rows that need to be deleted.
Example:
Sheet1 (where rows may be deleted) has unique values, such as organization codes, in column A: 91, 92, 93, 94, 95, 96, 97, 98
Sheet2 (where values are the same as Sheet1) has multiple values, such as employees, in Column F: 91, 91, 93, 93, 94, 91, 95, 94, 91, 93, 97, 98
The Sheet1 rows to be deleted, organization codes of employees who left, would be 92, and 96.
I'm not sure how to connect these two columns and/or how to proceed to delete, or mark rows for later deletion, in Sheet1.
I'd to do this in VBA as part of a Macro process.
Example:
Sheet1 (where rows may be deleted) has unique values, such as organization codes, in column A: 91, 92, 93, 94, 95, 96, 97, 98
Sheet2 (where values are the same as Sheet1) has multiple values, such as employees, in Column F: 91, 91, 93, 93, 94, 91, 95, 94, 91, 93, 97, 98
The Sheet1 rows to be deleted, organization codes of employees who left, would be 92, and 96.
I'm not sure how to connect these two columns and/or how to proceed to delete, or mark rows for later deletion, in Sheet1.
I'd to do this in VBA as part of a Macro process.