BIGTONE559
Active Member
- Joined
- Apr 20, 2011
- Messages
- 336
Greetings,
i'm looking for help on a efficient way of searching multiple arrays for data. i've come up with the following starting point however. I'm kinda lost as to where i should begin.
All help is appreciated
i'm looking for help on a efficient way of searching multiple arrays for data. i've come up with the following starting point however. I'm kinda lost as to where i should begin.
All help is appreciated
Code:
Dim d as integer 'Date Counter
Dim c as integer 'Color Counter
dim i as integer 'item counter
dim L as integer 'location counter
Range("A1:A500").name="MyData"
Dim MyDates as variant
Dim MyColor as variant
Dim MyItem as variant
Dim MyLocation as variant
MyDates=Range("MyDates")
MyColor=Range("MyColor")
MyItem=Range("MyItem")
MyLocation=Range("MyLocation")
for d=1 to ubound(MyDates)
for c=1 to ubound(MyColor)
for i=1 to ubound(MyItem)
for L=1 to ubound(MyLocation)
' i would like to sort through a large data set to find values that meet the following criteria.
'if "date" and "color" and "item" and "location" matches then blah blah
next L
next i
next c
next d
Last edited: