Results 1 to 3 of 3

Thread: Macro to delete Non Duplicate Records

  1. #1
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    13

    Macro to delete Non Duplicate Records

    I have highlighted duplicate records in Col A using Conditional formatting.

    I would like a macro to delete the rows containing non-duplicate records the are containied in Col A

  2. #2
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    12
    Code:
    Sub M_snb()
        [a1:A100] = [if(A1:A100="","",if(countif($A$1:$A$100,A1:A100)=1,"",A1:A100))]
        Columns(1).SpecialCells(4).EntireRow.Delete
    End Sub

  3. #3

Similar Threads

  1. Replies: 2
    Last Post: 09-12-2013, 02:13 PM
  2. Deleting Records Using Join
    By MMishra in forum MS-Access Tips And Tricks
    Replies: 0
    Last Post: 04-24-2013, 04:06 PM
  3. Macro To Delete Numbers With Trailing Character
    By Howardc in forum Excel Help
    Replies: 8
    Last Post: 04-05-2013, 08:14 PM
  4. Macro to delete trailing X's
    By Howardc in forum Excel Help
    Replies: 2
    Last Post: 03-29-2013, 12:43 PM
  5. Delete Duplicate Records from Access Table
    By littleiitin in forum Access Help
    Replies: 7
    Last Post: 08-23-2012, 10:30 AM

Posting Permissions

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