+ Reply to Thread
Results 1 to 5 of 5

Problem with VBA for removing duplicates

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Problem with VBA for removing duplicates

    Dear all,
    A strange thing, I have a list with material numbers and need to remove duplicates.
    And wether I do it with this VBA code :
    Please Login or Register  to view this content.
    Or wether I do it with the remove duplicates option in the data tab of Excel 2010 it just leaves material 1000463HJ double.

    Strange thing is when I shorten the list to a sample size including 1000463HJ is does remove the duplicate :/

    The material is around line 400 and not the last in the range so I don't think the list is too long.
    Also there are no spaces both cells give length of 9

    I attached a sample workbook with the material list in column A and the smaller sample in column D.
    As said if I remove duplicates on column A it does not work for 1000463HJ but for column D it does work.....

    Any thoughts?
    Thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-17-2013
    Location
    East
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Problem with VBA for removing duplicates

    I tried it with your code and workbook and it deleted everything but the first entry in both columns...

  3. #3
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Re: Problem with VBA for removing duplicates

    the code is part of a bigger workbook and vba module.

    So I think you changed the code to work in the attached workbook?

  4. #4
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Re: Problem with VBA for removing duplicates

    Ok I think it is an anomalie right? Don't think anybody knows what is going on here.
    Will need to think up a detour then.

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Problem with VBA for removing duplicates

    try this
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  6. #6
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Re: Problem with VBA for removing duplicates

    Thanks this is indeed in a way what I will do after the remove duplicates code as a double check.

+ 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] Problem with removing duplicates
    By emil9216 in forum Excel General
    Replies: 2
    Last Post: 08-20-2012, 07:16 AM
  2. Replies: 6
    Last Post: 03-29-2012, 12:16 AM
  3. Excel 2007 : Problem with removing duplicates
    By emil9216 in forum Excel General
    Replies: 5
    Last Post: 02-16-2012, 01:41 PM
  4. [SOLVED] Get:Removing Duplicates
    By Gary's Student in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 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