I am trying to remove duplicates, and after removing I need to shift cells up. The below works, but unfortunately it does not shift anything up. It leaves the empty rows.
Someone said to replace Columns:=Array(1) with Columns:=1, but that did not work.
Sub Macro3()
Range("A15").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.RemoveDuplicates Columns:=1, Header:=xlYes
End Sub