I'm trying to store records that Match an input into an array to hold 9 fields of information.
I could use a For Next loop and a variable to grab each of the 9 fields of information to STORE in my array but I'm unsure how to go about using a variable to designate which columns (A through I) to copy the information to be stored.
I'm hoping for an alternative to designating a line for each field of information to be copied and stored as illustrated below.
and continuing 6 more times.
Thanks for any tips
I could use a For Next loop and a variable to grab each of the 9 fields of information to STORE in my array but I'm unsure how to go about using a variable to designate which columns (A through I) to copy the information to be stored.
I'm hoping for an alternative to designating a line for each field of information to be copied and stored as illustrated below.
HTML Code:
MatchesArray(1, RecNum) = Worksheets("FamilyTree").Range("A" & RowNum).Value
MatchesArray(2, RecNum) = Worksheets("FamilyTree").Range("B" & RowNum).Value
MatchesArray(3, RecNum) = Worksheets("FamilyTree").Range("C" & RowNum).Value
Thanks for any tips