Sweet deal GTV! Yes, I apologize for not making that more clearer earlier.
A summary sheet is ideal so i can look at that one sheet for all my answers.
No worries on the hastiness, i'm patient. Thanks!
"GTVT06" wrote:
> On Sep 24, 6:19 pm, Versace77 <Versac...@discussions.microsoft.com>
> wrote:
> > GTVT06,
> >
> > Good evening.
> >
> > Thought this bit of specific info would be helpful.
> >
> > Once the macro analyzes the data across all 60 worksheets and rows i'd like
> > the summary sheet of data to display either each line (row) with a number at
> > the end or beginning of the row showing how many times that 1 row appeared in
> > the 60 worksheets.
> >
> > Hope that helps.
> >
> > Thanks again, GTV.
> >
> >
> >
> > "GTVT06" wrote:
> > > Hello Mike,
> > > You can try to use this code that I put together for you. I did it on
> > > the fly, so it's not the cleanest code, but it does the trick! right
> > > now I have it debug.print the sheet name and values of the duplicate
> > > entries in the immediate window. Let me know if you have questions.
> >
> > > Sub test()
> > > Dim cell, cell2 As Range
> > > Dim Dupe, Dupe2 As String
> > > Dim LRow, LRow2, i, i2 As Long
> > > Dim n As Single
> > > For n = 1 To Sheets.Count
> > > Worksheets(n).Activate
> >
> > > LRow = Worksheets(n).Range("A65536").End(xlUp).Row
> > > For Each cell In Worksheets(n).Range("A1:A" & LRow)
> > > i = cell.Row
> > > Dupe = Worksheets(n).Range("A" & i).Value &
> > > Worksheets(n).Range("B" & i).Value & Worksheets(n).Range("C" &
> > > i).Value _
> > > & Worksheets(n).Range("D" & i).Value & Worksheets(n).Range("E" &
> > > i).Value & Worksheets(n).Range("F" & i).Value _
> > > & Worksheets(n).Range("G" & i).Value & Worksheets(n).Range("H" &
> > > i).Value & Worksheets(n).Range("I" & i).Value _
> > > & Worksheets(n).Range("J" & i).Value & Worksheets(n).Range("K"
> > > & i).Value & Worksheets(n).Range("L" & i).Value _
> > > & Worksheets(n).Range("M" & i).Value & Worksheets(n).Range("N"
> > > & i).Value & Worksheets(n).Range("O" & i).Value _
> > > & Worksheets(n).Range("P" & i).Value &
> > > Worksheets(n).Range("Q" & i).Value & Worksheets(n).Range("R" &
> > > i).Value _
> > > & Worksheets(n).Range("S" & i).Value &
> > > Worksheets(n).Range("T" & i).Value
> > > Dim n2 As Single
> > > For n2 = 1 To Sheets.Count
> > > If Worksheets(n2).Name = Worksheets(n).Name Then GoTo nx
> > > LRow2 = Worksheets(n2).Range("A65536").End(xlUp).Row
> > > For Each cell2 In Worksheets(n2).Range("A1:A" & LRow2)
> > > i2 = cell2.Row
> > > Dupe2 = Worksheets(n2).Range("A" & i2).Value &
> > > Worksheets(n2).Range("B" & i2).Value & Worksheets(n2).Range("C" &
> > > i2).Value _
> > > & Worksheets(n2).Range("D" & i2).Value & Worksheets(n2).Range("E"
> > > & i2).Value & Worksheets(n2).Range("F" & i2).Value _
> > > & Worksheets(n2).Range("G" & i2).Value &
> > > Worksheets(n2).Range("H" & i2).Value & Worksheets(n2).Range("I" &
> > > i2).Value _
> > > & Worksheets(n2).Range("J" & i2).Value &
> > > Worksheets(n2).Range("K" & i2).Value & Worksheets(n2).Range("L" &
> > > i2).Value _
> > > & Worksheets(n2).Range("M" & i2).Value &
> > > Worksheets(n2).Range("N" & i2).Value & Worksheets(n2).Range("O" &
> > > i2).Value _
> > > & Worksheets(n2).Range("P" & i2).Value &
> > > Worksheets(n2).Range("Q" & i2).Value & Worksheets(n2).Range("R" &
> > > i2).Value _
> > > & Worksheets(n2).Range("S" & i2).Value &
> > > Worksheets(n2).Range("T" & i2).Value
> >
> > > If Dupe <> "" And Dupe = Dupe2 Then Debug.Print Worksheets(n).Name & "
> > > - " & Dupe & " & " & Worksheets(n2).Name & " - " & Dupe2
> >
> > > Next cell2
> > > nx:
> > > Next n2
> > > Next cell
> > > Next n
> > > End Sub- Hide quoted text -
> >
> > - Show quoted text -
>
> Oh Cool!!! This will make doing away with duplicate entries easier! I
> didn't know there was a summary sheet you wanted to report this on. I
> can revise my code to do this for you. I probably wont get a chance to
> actually work on it until a little later tonight though.
>
|