+ Reply to Thread
Results 1 to 2 of 2

Non-unique elements in an array

  1. #1
    Andrew
    Guest

    Non-unique elements in an array

    In a macro I'm writing I need to find out if a new value I'm adding to an
    array already exists as a value within that array. Can anyone help, please?

    Thanks,

    Andrew

  2. #2
    KL
    Guest

    Re: Non-unique elements in an array

    Hi Andrew,

    Try something like this:

    If IsError(Application.Match(myValue, myArray, 0)) Then
    '...
    Else
    '...
    End If

    Regards,
    KL


    "Andrew" <[email protected]> wrote in message
    news:[email protected]...
    > In a macro I'm writing I need to find out if a new value I'm adding to an
    > array already exists as a value within that array. Can anyone help,
    > please?
    >
    > Thanks,
    >
    > Andrew




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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