+ Reply to Thread
Results 1 to 5 of 5

VBA Delete unique rows.

  1. #1
    Registered User
    Join Date
    09-18-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    33

    VBA Delete unique rows.

    Example2.xlsx

    I have a previously unresolved question about deleting unique rows.

    I basically want column B to be the identifier in each row, so if there are two rows in column B with the same text, that is considered a duplicate row and is saved. Any row that is unique (as in the content in column B on that row is not repeated on any other row in that column) is deleted.


    I'm not sure if I'm explaining this well, but the attached file should do the trick.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA Delete unique rows.

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Delete unique rows.

    If you are trying to delete duplicate rows, you do not need a code, excel has a built-in function.

    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,465

    Re: VBA Delete unique rows.

    Autofilter.
    When all unique, it will do nothing, it is safe even if the user run the code multiple time.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jindon; 12-23-2014 at 08:10 PM.

  5. #5
    Registered User
    Join Date
    09-18-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    33

    Re: VBA Delete unique rows.

    Thank you all this is great.

+ 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] Macro to delete rows for all unique cells in a row
    By capson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-25-2014, 06:13 AM
  2. [SOLVED] Keep duplicates but delete unique rows
    By Adam845 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-03-2012, 02:21 PM
  3. Replies: 4
    Last Post: 03-09-2011, 12:16 PM
  4. Delete rows if the unique ID appear once or twice only
    By kaffal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2009, 03:07 PM
  5. Delete rows based on unique syntax
    By tzflorida in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2009, 02:59 PM

Tags for this Thread

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