Newsgroups: microsoft.public.excel.programming
From: jh...@Hellobots.geocities.com (Jerry Hunt)
Date: 1997/11/19
Subject: Re: Find and delete duplicate rows macro req please.
Below is a sub that will test for and delete duplicates. This process Sub DeleteDuplicates() Dim LastRow As Integer ' Go to start of data range, get last row number and set first ' Begin overall loop ' Exit loop if next row is blank ' Concatenate current row and capture address of ActiveCell ' Move to next row to begin testing for duplicates ' Loop through remaining rows and delete duplicates of current row ' Concatenate current row ' Compare value of current row against TestRow ' If not equal, move to next row Next ' Go back to ReturnCell, advance to next row, reset ReturnCell Next End Sub =========================================================================== ======1 On Wed, 19 Nov 1997 07:55:06 GMT, higr...@xtra.co.co.nz wrote: Spam buster: >How can I create a macro that will find and delete rows that contain the exact same data as another >row. >eg: >I need to delete row 27 as it duplicates row 3, if all entries (ie: A3:D3 = A27:D27) then delete one >thanks if you can help me >Hig To send me e-mail, remove the "hello..." from my e-mail address (I hate spambots). You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||