Not sure if anyone will have this problem or not, so I decided that I would send the answer I found. I like the array solution sent by @Ripster (and thanks for that, it almost worked), but in this case it will not work. I am working with a large data sheet with 1 identifier column, and I want to check other sheets to see if there are duplicates on this sheet (using the ID column). do not delete, just check so I can check them out. With potentially above 50K lines passing through each line, it will take LONG time.
So, I realized what I can do is copy the ID column from another sheet to the main sheet and use the conditional formatting option to mark duplicates in some color. (It will mark the rows in both columns) and then I can filter the column by color to show me only the color that I used to mark duplicates. If I programmatically add a column to the sheet, I check the row numbers, I can even include this column in the main sheet, so when I filter the color, I can see which rows they were on my sheet.
After that I can record and adapt the macro to do it automatically for my less programmable oblique employees
Thanks everyone!
Edit - Added code
After selecting the columns to compare, here is the code for marking duplicates in red text and without filling. - Selection.FormatConditions.AddUniqueValues Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority Selection.FormatConditions(1).DupeUnique = xlDuplicate With Selection.FormatConditions(1).Font .Color = -16383844 .TintAndShade = 0 End With Selection.FormatConditions(1).StopIfTrue = False
and then, since both columns have marked duplicates, you select the one you actually want to examine and has a filter to filter:
`Selection.AutoFilter ActiveSheet.Range("$C$1:$C$12").AutoFilter Field:=1, Criteria1:=RGB(156, 0 _ , 6), Operator:=xlFilterFontColor`
(in my test, I used column c as a filter for filtering, which can be programmatic with cells() or range(cells(), cells())
I wish everyone good luck in their future beginners! Thanks again @ripster