Hello sandy.beach,
The macro will loop through all the sheets in the workbook. I used the Select Case statement to exclude the worksheets you posted. Here is the updated macro code.
Sub Delete_Duplicate_Rows()
'
Dim str1 As String, str2 As String
Dim r1 As Long, r2 As Long, c As Long
Dim Wks As Worksheet
'
Application.ScreenUpdating = False
For Each Wks In Worksheets
Select Case Wks.Name
Case "Main", "Menu"
'Do nothing Skip these sheets
Case Else
With Wks.UsedRange
'
For r1 = .Rows.Count To 2 Step -1
str1 = ""
For c = 1 To .Columns.Count
str1 = str1 & Cells(r1, c).Value
Next c
For r2 = r1 - 1 To 1 Step -1
str2 = ""
For c = 1 To .Columns.Count
str2 = str2 & Cells(r2, c).Value
Next c
If str1 = str2 Then
Rows(r1).Delete
Exit For
End If
Next r2
Next r1
'
End With
Next Wks
End Select
Application.ScreenUpdating = True
End Sub
Bookmarks