View Single Post
 
Old 10-05-2015, 08:49 AM
zhead zhead is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Mar 2015
Location: Texas
Posts: 32
zhead is on a distinguished road
Question how can I modify this macro to work on another column besides "A"

Is it possible to modify this macro to work on any column? It seems to only work if my data is in column "A".

Sub luxation()
Dim N As Long
N = Cells(Rows.Count, 1).End(xlUp).Row
For i = N To 2 Step -1
If Cells(i, 1) = Cells(i - 1, 1) Then
Cells(i, 1) = ""
End If
Next i
End Sub
Reply With Quote