Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andrew
 
Posts: n/a
Default 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   Report Post  
KL
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the maximum allowed number of data elements in a data array? [email protected] Excel Discussion (Misc queries) 2 April 7th 05 06:56 PM
How to validate data entries to be unique within an array Dwight at Boeing Excel Worksheet Functions 1 February 15th 05 06:30 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with array formula Excel Worksheet Functions 2 January 20th 05 04:17 PM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 09:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"