Do you get a prompt to enable macros?
On Developer tab, in [Macro Security] select Disable all macros with notification
I added a command button on [Start] and 2 msgboxs to the macro to at least show that you're in the macro
Option Explicit
Sub test()
Dim iSheetIndex As Long
If MsgBox("Remove dups?", vbYesNo + vbQuestion, "Demo") = vbNo Then Exit Sub
'turn off updates for speed (really should save the status)
With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
.EnableEvents = False
End With
For iSheetIndex = Worksheets("Start").Index To Worksheets("Stop").Index
With Worksheets(iSheetIndex)
'skip empty sheets just in case
If .UsedRange.Cells.Count = 1 Then GoTo NextSheet
'remove empty leading columns and rows
Do While Application.WorksheetFunction.CountA(.Rows(1)) = 0
.Rows(1).Delete
Loop
Do While Application.WorksheetFunction.CountA(.Columns(1)) = 0
.Columns(1).Delete
Loop
'delete dup data
.Cells(1, 1).CurrentRegion.RemoveDuplicates Columns:=Array(2, 4, 8, 9, 10, 11, 12, 13), Header:=xlYes
'select the sheet so we can freeze panes
.Select
.Cells(2, 1).Select
ActiveWindow.FreezePanes = True
End With
NextSheet:
Next iSheetIndex
'turn on again to be neat
With Application
.ScreenUpdating = True
.Calculation = xlCalculationAutomatic
.EnableEvents = True
End With
Call MsgBox("All done!!!", vbInformation + vbOKOnly, "Demo")
End Sub