+ Reply to Thread
Results 1 to 2 of 2

UNIQUE function doesn't always work

  1. #1
    Forum Contributor
    Join Date
    03-11-2010
    Location
    India
    MS-Off Ver
    2010
    Posts
    268

    UNIQUE function doesn't always work

    Hello All

    I am using UNIQUE function in VBA to get unique values from a column to another column, something like:

    Please Login or Register  to view this content.
    This morning, users reported a bug and I found that in column A, ALL values from 7th column were present, instead of just the unique values.

    I set up a breakpoint, and again saw the same issue.

    So, I manually (not through VBA code) use the unique function on the worksheet in another column, and see the same issue.

    Then, I close the file, reopen it and the unique function magically starts working properly in all these places!

    Now, it ALWAYS works and I am not even able to recreate the issue!


    1. Is there a known issue with unique function, and if so, is there a workaround?

    2. I have now added
    Please Login or Register  to view this content.
    function after unique function in my vba code. Will that help, or should I do something else to "force" unique function to work every time?


    Thanks All
    Ajay

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: UNIQUE function doesn't always work

    A different approach...
    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. [SOLVED] IF AND function doesn't work
    By Afjio12 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-02-2019, 06:32 AM
  2. Min If function doesn't work
    By orinky in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2017, 11:47 AM
  3. [SOLVED] IF+AND function doesn't work
    By toci in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2015, 03:34 PM
  4. [SOLVED] IF+AND function doesn't work
    By toci in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2015, 03:30 PM
  5. [SOLVED] Help with INDIRECT FUNCTION Doesn't work
    By Kinez101 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-07-2013, 11:12 AM
  6. Simple AND function - why doesn't it work?
    By rojo1221 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-16-2013, 12:41 AM
  7. NZ function doesn't work!
    By salut in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2006, 03:50 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