Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If I have the following in my code ...
Dim intEFX As Integer Dim A As Variant A = Array(1, 4, 6, 9) .... then how do I test for intEFX being equal to a value in the array after assigning it a value, and without going If intEFX = A(0) OR intEFX = A(1), etc? That's a reasonable way to go with a tiny array, but there's got to be a more elegant solution for larger arrays, right? Tried looking for a help topic that combined IF and arrays, but not having any luck, so any help provided would be much appreciated. Thank you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Testing of an array | Excel Worksheet Functions | |||
Converting an Array to value's | Excel Discussion (Misc queries) | |||
combo box and value's | Excel Discussion (Misc queries) | |||
Testing a string array for any values | Excel Programming | |||
text inclusion | Excel Programming |