Hi!
I'm not to familiar with the VB syntax to be able to do what I want.
I have two dynamic arrays of type string that contains a word in a cell. I want to compare each cell in one array to each cell in another array. If there is a match I'm going to do something. I've tried to write a little pseudo code to better explain.
dim proArray() as string
dim suppArray() as string
dim proCount as long
dim suppCount as long
Pseudo code:
proCount = 0
do while (proArray() is empty <> true)
suppCount = 0
do while (suppArray() is empty <> true)
if (proArray(proCount) = suppArray(suppCount)
do my stuff....
suppCount = suppCount +1
else
suppCount = suppCount +1
end if
loop
proCount = proCount +1
loop
How would the actual VB code look like to be able to do this?
Thanks
M.
I'm not to familiar with the VB syntax to be able to do what I want.
I have two dynamic arrays of type string that contains a word in a cell. I want to compare each cell in one array to each cell in another array. If there is a match I'm going to do something. I've tried to write a little pseudo code to better explain.
dim proArray() as string
dim suppArray() as string
dim proCount as long
dim suppCount as long
Pseudo code:
proCount = 0
do while (proArray() is empty <> true)
suppCount = 0
do while (suppArray() is empty <> true)
if (proArray(proCount) = suppArray(suppCount)
do my stuff....
suppCount = suppCount +1
else
suppCount = suppCount +1
end if
loop
proCount = proCount +1
loop
How would the actual VB code look like to be able to do this?
Thanks
M.