+ Reply to Thread
Results 1 to 3 of 3

Delete both Original and duplicate rows

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    Nevada
    MS-Off Ver
    Excel 365
    Posts
    17

    Delete both Original and duplicate rows

    Good Evening,

    I have basic VBA skills. My worksheet that will have duplicate data inserted into it. Once inserted I need to delete the new duplicate row and the row it duplicated. The attachment is a copy of what the data looks like with the first tab showing what it will look like with inserted data and the second tab is what I want it to look like at the end. I will not need the deleted data again so it does not need to be on a new sheet, that is just for an example. The name of the tabs will also be different so I want to be able to run it on any worksheet. This is the code I am using to find and delete the duplicate but I can't get it to delete the original. I used "First, MI, Last, and DOB" because those are the ones that won't be duplicated where others will. This is a list of about 15,000 entries. There should never be an incident where there is triplicate data but I can't say for sure.

    Thank you in advance,
    Cara


    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Delete both Original and duplicate rows

    This code is not mine but try this to see if this works for you.
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    Nevada
    MS-Off Ver
    Excel 365
    Posts
    17

    Re: Delete both Original and duplicate rows

    Sktneer,

    Thank you very much! It worked perfectly! I really appreciate your help. Still trying to understand why it worked, but it did.

    Thank you,
    Cara

+ 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. [SOLVED] Deleting Duplicate and Original Rows
    By aferoz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2022, 02:00 AM
  2. Merging Duplicate Rows and Keeping Original Data
    By vinnie179 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-19-2014, 07:18 AM
  3. Delete original and duplicate
    By Horgans in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-17-2014, 01:46 AM
  4. remove duplicate AND its original rows
    By TAX in forum Excel General
    Replies: 4
    Last Post: 03-29-2012, 02:12 AM
  5. Compare rows, cut matches to sheet, delete original rows
    By somesoldiers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2010, 11:42 AM

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