Ciria,
Welcome to ozgrid
Place this code in the Thisworkbook module and run. It will add a worksheet called "Index" with the results of dublicate numbers. I assumed one traking number per sheet in cell A1
VB:Dim sht As Worksheet Dim r As Integer Dim LastRow As Integer Dim i As Integer Dim j As Integer On Error Goto AddIndex Sheets("Index").Activate On Error Goto 0 Range("B1") = "Sheet Name" Range("C1") = "Tracking #" Range("A2:D65536").Clear r = 1 For Each sht In Worksheets If sht.Name <> "Index" Then r = r + 1 Cells(r, 2) = sht.Name Cells(r, 3) = sht.Range("A1") End If Next sht LastRow = Range("C65536").End(xlUp).Row For i = 2 To LastRow For j = i + 1 To LastRow If Cells(i, 3) = Cells(j, 3) Then Cells(j, 4) = "Dublicate" Next j Next i Exit Sub AddIndex: Sheets.Add ActiveSheet.Name = "Index" Resume Next End Sub


Reply With Quote

Bookmarks