K
kaon
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).EntireRow) <>
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
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).EntireRow) <>
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