+ Reply to Thread
Results 1 to 4 of 4

VBA to remove duplicate entries in a column

  1. #1
    Forum Contributor
    Join Date
    10-08-2018
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 365
    Posts
    104

    VBA to remove duplicate entries in a column

    Hi all,

    I have names of our employees in column A that is being populated from another spreadsheet using "If" formulae. I need to delete the duplicate entries and also delete the row. For this I am trying the following VBA code, but running into problems. The code is stopping at the "Lastrow" line with a run-time error message 438- "object doesn't support this property or method". Any help would be greatly appreciated.

    Also I would like to delete the rows with blanks in this column.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: VBA to remove duplicate entries in a column

    Hi bsrivatsa,

    Try this (though initially on a copy of your data as the results cannot be undone if they're not as expected):

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Contributor
    Join Date
    10-08-2018
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 365
    Posts
    104

    Re: VBA to remove duplicate entries in a column

    Thank you trebor76.

    I found this solution elsewhere online and seems to work well for me.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: VBA to remove duplicate entries in a column

    NP. 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. [SOLVED] How to get reference of duplicate value and set remove duplicate value for future entries
    By bala04msw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2016, 08:13 AM
  2. Replies: 0
    Last Post: 07-12-2014, 03:17 PM
  3. [SOLVED] Remove duplicate entries from one column and output it into another column using formulas
    By alrikvincent in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-12-2014, 08:55 AM
  4. Replies: 0
    Last Post: 06-14-2012, 12:38 PM
  5. How to remove duplicate entries?
    By dorian86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2007, 12:55 AM
  6. Replies: 1
    Last Post: 06-24-2005, 05:05 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