I am looking for a macro that can do the following:
1) See if any rows from MECH_COMBINED sheet exist with the exact same info in the COMPONENTS sheet. (There are around 7000 rows in MECH_COMBINED, 20000 in COMPONENTS, each sheet has columns that go up to BI same column names)
2) If rows in MECH_COMBINED exist then highlight the whole row in the COMPONENTS sheet and create a third sheet with the different rows (if thats not possible then the third sheet could have the same highlighted rows
I hope this is a possible macro? the one I am using now runs way too slowly and ends up freezing excel.
Sub Test()
Application.ScreenUpdating = False
Dim bottomA1 As Integer bottomA1 = Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row Dim c As Range
Dim bottomA2 As Integer bottomA2 = Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Row Dim x As Integer For Each c In Sheets("Sheet2").Range("A1:A" & bottomA2)
For x = bottomA1 To 2 Step -1 If Cells(x, 1) = c Then Cells(x, 1).EntireRow.Interior.Color = 255 End If Next x Next c Application.ScreenUpdating = True
End Sub
Thanks in advance :)