+ Reply to Thread
Results 1 to 6 of 6

VB Code to find duplicate in a column and delete he row

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to find duplicate in a column and delete he row

    Hello:

    Please refer to attached file.
    I have numbers in column A.
    I need VB Code to find the duplicates, highlight and then give a choice to delete the row (Y/N).

    Let me know if you have any questions.
    Thanks.
    Riz
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VB Code to find duplicate in a column and delete he row

    Hi Riz,

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to find duplicate in a column and delete he row

    Hello xladept:

    Works great except I would like to make small change.
    It needs to first find all duplicates and highlight all the duplicates.
    Then give a choice to delete all duplicate.
    Please let me know if you have any questions.
    Thanks.
    Riz

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VB Code to find duplicate in a column and delete he row

    Hi Riz,

    Try this:


    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to find duplicate in a column and delete he row

    Hi xladept:

    This works great...
    Thanks a lot.

    Riz

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VB Code to find duplicate in a column and delete he row

    You're welcome and thanks for the rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find Duplicate in column and delete first:
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2013, 03:19 PM
  2. [SOLVED] Find duplicate in another column and delete that row
    By Gopinathak in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-01-2013, 05:39 AM
  3. [SOLVED] How to find and delete duplicate row from a column in ACCESS QUERY
    By LALTIZER in forum Access Tables & Databases
    Replies: 5
    Last Post: 02-07-2013, 05:31 PM
  4. [SOLVED] Find dupicates in column, and delete entire row(s) containing duplicate(s)
    By staggers47 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-31-2012, 01:28 PM
  5. Replies: 2
    Last Post: 04-21-2009, 03:24 PM

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