Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
Hi Andrew,
Try something like this: If IsError(Application.Match(myValue, myArray, 0)) Then '... Else '... End If Regards, KL "Andrew" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
What is the maximum allowed number of data elements in a data array? | Excel Discussion (Misc queries) | |||
How to validate data entries to be unique within an array | Excel Worksheet Functions | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) | |||
Help with array formula | Excel Worksheet Functions | |||
VBA Import of text file & Array parsing of that data | Excel Discussion (Misc queries) |