Fjerner dubletter og opretter nyt ark (For en sikkerheds skyld)
Som jkrons skarpe øje så: 2 x Hansen forskellige nr.
Så her 2 versioner: A eller B
Sub FjernDubletKolA()
Application.ScreenUpdating = False
StartArk = ActiveSheet.Name
Columns("A:A").Select
Range("A:A").AdvancedFilter Action:=xlFilterInPlace, Unique:=True
Range("A:B").Select 'Ret evt. Kolonner der kopieres
Selection.Copy
Set NytArk = Sheets.Add
NytArk.Name = "Ny liste kl " & Format(Time, "h mm ss")
Range("A1").Select
ActiveSheet.Paste
Range("A1").Select
Sheets(StartArk).Activate
Range("A:A").AdvancedFilter Action:=xlFilterInPlace, Unique:=False
Range("A1").Select
Application.ScreenUpdating = True
End Sub
Sub FjernDubletKolB()
Application.ScreenUpdating = False
StartArk = ActiveSheet.Name
Columns("B:B").Select
Range("B:B").AdvancedFilter Action:=xlFilterInPlace, Unique:=True
Range("A:B").Select 'Ret evt. Kolonner der kopieres
Selection.Copy
Set NytArk = Sheets.Add
NytArk.Name = "Ny liste kl " & Format(Time, "h mm ss")
Range("A1").Select
ActiveSheet.Paste
Range("A1").Select
Sheets(StartArk).Activate
Range("B:B").AdvancedFilter Action:=xlFilterInPlace, Unique:=False
Range("A1").Select
Application.ScreenUpdating = True
End Sub