LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Checking entire row for duplicates

See if the first tip at this link helps you out.

http://j-walk.com/ss/excel/eee/eee016.txt

Mark


"SHiggins" wrote in message
...
I am trying to remove duplicates in my data where the entire row matches

the one under it. So far I have it where it checks just one cell to see if
it matches. How do I have it look at the entire row?

Thanks!

Here is my code so far:

Sub Dups()
Do
If ActiveCell.Value = ActiveCell.Offset(1, 0).Value Then
'ActiveCell.EntireRow.Delete
ActiveCell.Offset(1, 0).EntireRow.Delete
Else
ActiveCell.Offset(1, 0).Activate
End If
Loop Until ActiveCell.Value = Empty
End Sub



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking for Duplicates within a Workbook RAYCV Excel Worksheet Functions 7 September 23rd 08 12:10 PM
checking for duplicates Ted Metro Excel Worksheet Functions 1 April 3rd 07 05:42 PM
Checking for duplicates - think this is simple [email protected] Excel Discussion (Misc queries) 9 February 27th 06 09:32 PM
Checking entire row for duplicates Tom Ogilvy Excel Programming 0 July 14th 04 06:26 PM
Checking for duplicates? Eric G[_3_] Excel Programming 4 April 8th 04 02:54 AM


All times are GMT +1. The time now is 08:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"