I have a function that generates a unique array of names from a predefined range of cells. I am trying to to create a loop to extract those names so that I can use them in another function. I don't know why I have such a problem grasping how loops work. I understand on an elementary level what they are suppose to do but tend to get lost in all the different types and varying requirements for how they should be constructed.
At any rate, here are the variables used:
[VBA]
Dim uNames As Variant 'Number of unique names in the Array
Dim myNames As Variant 'The actual array of names
uNames = UniqueItems(True) 'Captures number of unique names
myNames = UniqueItems(False) 'Captures the array of names
[/VBA]
How would I set up a For Each loop (if that is indeed the appropriate type of loop) to extract the individual names from myNames so that I could reference them individually and make them available individually to other functions?
Thanks,
Opv