Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There's really no need to make cells active this way - unless you like to
see the screen updating. Sub Delete_Row() Dim target as range set target = activecell Do If Target.Value = Target.Offset(1, 0).Value Then Target.Offset(1, 0).EntireRow.Delete Else Ste target = target.Offset(1, 0) End If Loop While target.value< "" End Sub -- Patrick Molloy Microsoft Excel MVP --------------------------------- I Feel Great! --------------------------------- "Soo Cheon Jheong" wrote in message ... Try Sub Delete_Row() Do If ActiveCell.Value = ActiveCell.Offset(1, 0).Value Then ActiveCell.Offset(1, 0).EntireRow.Delete Else ActiveCell.Offset(1, 0).Select End If Loop While ActiveCell < "" End Sub __ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Eliminate Duplicate Row | Excel Discussion (Misc queries) | |||
how to eliminate duplicate numbers | Excel Worksheet Functions | |||
Eliminate duplicate values in drop down list | Excel Discussion (Misc queries) | |||
Eliminate Duplicate Rows - Add columns Accordingly | Excel Discussion (Misc queries) | |||
How to eliminate duplicate entries | Excel Discussion (Misc queries) |