Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I am a newbie in excel marco and this forum (from Hong Kong). :) I used the macro from cpearson.com, but slightly modified to suit m need. Here is the modification: For r = Rng.Rows.Count To 1 Step -1 V = Rng.Cells(r, 1).Value If Application.WorksheetFunction.CountIf(Rng.Columns( 1), V) 1 An _ Application.WorksheetFunction.CountA(Rng.Rows(r).E ntireRow) < Then Rng.Rows(r).EntireRow.Delete N = N + 1 End If Next r I have no idea why this would also delete those blank rows. Also, how to use CountA()? I mean the difference between count an countA, coz I cannot find any from google. Thanks -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
delete duplicate rows, keep one | Excel Discussion (Misc queries) | |||
delete duplicate rows | Excel Worksheet Functions | |||
HELP delete duplicate rows. | Excel Programming | |||
Delete duplicate rows | Excel Programming | |||
delete duplicate rows | Excel Programming |