+ Reply to Thread
Results 1 to 2 of 2

Removing Duplicates through VBA throwing pop-up

  1. #1
    Registered User
    Join Date
    09-11-2017
    Location
    USA
    MS-Off Ver
    Excel for Mac 2016
    Posts
    10

    Removing Duplicates through VBA throwing pop-up

    Column C in my spreadsheet contains values that will be client-chosen and frequently updated. I want column D to have data validation applied dynamically that pulls from that list. However, it needs to contain alphabetically ordered, unique values.

    What I am currently doing is using the following formula to alphabetically order those values in a hidden column (BK). (Note: the site I found this on indicated it should only show unique values, however it did not).

    {=INDEX(List,MATCH(0,IF(MAX(NOT(COUNTIF($BK$15:BK15,List))*(COUNTIF(List,">"&List)+1))=(COUNTIF(List,">"&List)+1),0,1),0))}

    To update column D dynamically, I am using the following code:
    Please Login or Register  to view this content.
    This seems to work, except every time I click in a cell in column D it still throws a pop up box called "Remove Duplicates" that shows two checked checkboxes -- "Select All" and "Column BL". It also tells me how many duplicates were found and how many unique values will remain.

    I am at a loss for why displayalerts=false hasn't turned this off, but it definitely isn't an option to have this fire every time someone clicks in column D. Has anyone seen this before? (I am on Excel for Mac 2016 by the way).
    Last edited by iPenguin; 09-26-2017 at 04:09 PM.

  2. #2
    Registered User
    Join Date
    09-11-2017
    Location
    USA
    MS-Off Ver
    Excel for Mac 2016
    Posts
    10

    Re: Removing Duplicates through VBA throwing pop-up

    I should note that I am also open to alternative suggestions for how to update these validation lists based on other values if my method of copy/paste/validate is needlessly complex.

    I have additional scenarios where rather than adding validation lists based on another column in the same sheet, I am actually searching over values on another sheet. If I could pull those values directly into the validation list without having to do the Find/Copy/Paste/Validate dance, I would be thrilled but I am not sure how. (See below for how I am actually addressing that scenario):

    Please Login or Register  to view this content.

+ 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. Remove duplicates not removing duplicates bug, so what???!!!
    By abdelrazzaq in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-19-2016, 01:43 PM
  2. [SOLVED] removing duplicates only within duplicates on another column
    By eculver in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2016, 08:08 PM
  3. Remove duplicates function not removing duplicates
    By Berilium2 in forum Excel General
    Replies: 3
    Last Post: 04-01-2015, 06:55 AM
  4. Replies: 6
    Last Post: 03-29-2012, 12:16 AM
  5. Removing Duplicates
    By drob59233 in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 06:44 PM
  6. Excel 2007 : Removing duplicates
    By EMBstore in forum Excel General
    Replies: 2
    Last Post: 10-07-2011, 03:23 PM
  7. [SOLVED] Removing Duplicates
    By sat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2005, 07:05 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