Compare Two Worksheets with VBA
[ From Compare Two Worksheets with VBA — Excel Dashboards VBA (thesmallman.com) ] Compare Two Worksheets with VBA Compare two worksheets with VBA and output the differences to a new worksheet. With the following vba macro, you can compare the contents of two worksheets and only display the differences. The following will compare Column A in the active sheet (Sheet1) for example with Column A in Sheet2. It uses the scripting dictionary so the process is very fast for high volumes of data. Of course this procedure could be replicated with a Vlookup in native Excel without the output to a new area. Option Explicit Sub NoMatches() 'Excel vba to remove duplicates. Dim dic As Object Dim ar As Variant Dim ar1 As Variant Dim var As Variant Dim i As Long Dim n As Long Set dic=Createobject("Scripting.Dictionary") dic.CompareMode=1 ar=Range("A2", Range("A" & Rows.Count).End(xlUp)).Value var=Sheet2.Range("A2", Sheet2.Range("A" & R