Hi there,
Your macro is deleting the duplicate in the first column selected, the rest of the row remains as is. if this is what you need and you only want to replace the input box try the below.
Provided your data starts in A1 and has no blank rows in column A, you can do it with changing one line:
Sub RemoveDuplicates()
'UpdatebyExtendoffice20160918
Dim xRow As Long
Dim xCol As Long
Dim xrg As Range
Dim xl As Long
On Error Resume Next
Set xrg = ActiveSheet.Range("A1").CurrentRegion
'Set xrg = Application.InputBox("Select a range:", "Kutools for Excel", _
'ActiveWindow.RangeSelection.AddressLocal, , , , , 8)
xRow = xrg.Rows.Count + xrg.Row - 1
xCol = xrg.Column
'MsgBox xRow & ":" & xCol
Application.ScreenUpdating = False
For xl = xRow To 2 Step -1
If Cells(xl, xCol) = Cells(xl - 1, xCol) Then
Cells(xl, xCol) = ""
End If
Next xl
Application.ScreenUpdating = True
End Sub
Bookmarks