For lCol = Columns("P").Column To Columns("L").Column Step -1
is the same as
for lCol = 16 to 12 step -1
confirming from the immediate window:
? columns("P").column
16
? columns("L").column
12
--
Regards,
Tom Ogilvy
"Ardus Petus" wrote:
Hi Casey
Sub DelDupeCols()
Dim lCol As Long
Dim rFound As Range
For lCol = Columns("P").Column To Columns("L").Column Step -1
Set rFound = Range(Range("K1"), Cells(1, lCol - 1)).Find( _
what:=Cells(1, lCol).Value, _
LookIn:=xlValues, _
lookat:=xlWhole)
If Not rFound Is Nothing Then
Columns(lCol).Delete
End If
Next lCol
End Sub