Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub deleteDupsInSortedList()
Dim icol as Long, lastrow as Long icol = 1 lastrow = cells(rows.count,icol).End(xlup) for i = lastrow to 2 step -1 if cells(i,1).Value = cells(i-1,icol).Value then rows(i).Delete end if Next i End Sub -- Regards, Tom Ogilvy "ina" wrote: Thanks a lot for this answers, effectively I would like to delete a duplicate entry in a column. Ina |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA: Column Select then Data Select then return to cell A1 | Excel Discussion (Misc queries) | |||
Macro to select cells without a certain value and select a menu it | Excel Worksheet Functions | |||
Using formulas to select cells (Ex: Select every nth cell in a col | Excel Discussion (Misc queries) | |||
In Excel 2000, How do you select the whole of a worksheet (Select. | Excel Discussion (Misc queries) | |||
In Excel 2000, How do you select the whole of a worksheet (Select. | Excel Discussion (Misc queries) |