Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub sonic()
i = Cells(Rows.Count, "A").End(xlUp).Row For j = i To 2 Step -1 If Cells(j, "A").Value = Cells(j - 1, "A").Value Then Cells(j, "A").Delete End If Next End Sub -- Gary''s Student gsnu200709 "Lillian" wrote: I have big excel record, but on the columnA has a lots of dupluicate record, how can I write a macro to delete them ColumnA aaa aaa bbb bbb ccc ccc I want be like this ColumnA aaa bbb ccc Thanks. Lillian |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Duplicate company name to be deleted | Excel Discussion (Misc queries) | |||
Adding new numbers as I type without duplicates from Sheet1,ColumnA to Sheet2,ColumnA | Excel Worksheet Functions | |||
Duplicate Record.... | Excel Programming | |||
Duplicate Record.... | Excel Programming | |||
draw borders around deleted duplicate cells | Excel Programming |