+ Reply to Thread
Results 1 to 7 of 7

vba code to find repeat rows

  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    Brandenburg
    MS-Off Ver
    Excel 2003
    Posts
    4

    vba code to find repeat rows

    I have an array A1:F1500 is important to find if any of the rows are repeated, I attache a little example, I don't want use excel functions I want a vba code to do this task, I am using excel 2003. any executable file welcome. thanks.
    HTML Code: 

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: vba code to find repeat rows

    Hi

    Here goes.
    Please Login or Register  to view this content.
    rylo

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: vba code to find repeat rows

    Hello dimvelements13579,

    Welcome to the Forum!

    I am not sure what you want to do with the duplicates: move them to another sheet, delete them, etc. This macro will highlight any rows that are duplicated. It is not particularly useful sense there is no information as to which row was duplicated. This macro can be easily changed to do what you want. Let me know what you want to do with the duplicates and I will make the changes.

    Add a new VBA Module to your workbook. Copy and paste this code into the new module.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: vba code to find repeat rows

    Give this a try. Note it assumes nothing else of value is in columns G, H or I.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-05-2012
    Location
    Brandenburg
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: vba code to find repeat rows

    Leith Ross & Mallycat thank you so much,

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: vba code to find repeat rows

    Hello dimvelements1357,

    Is your problem solved?

  7. #7
    Registered User
    Join Date
    04-05-2012
    Location
    Brandenburg
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: vba code to find repeat rows

    [solved]...........

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1