Hi,
I'm looking for an efficient way to populate a two dimensional array. The
first cell of each row contains the First Name and the second cell has the
Last Name. I'm ok up to the part where I actually need to read the data in
The code I have for reading the data into the array works but it is just
awful:
'loop reading each spreadsheet element into the array
n = 0 'counter for array element position
intRow = 1
intCol = 1
Do Until objExcel.Cells(intRow,intCol).Value = ""
Fullname(n,0) = objExcel.Cells(intRow, intCol).Value
intRow = intRow + 1
n = n + 1
Loop
intRow = 1
intCol = 2
n = 0
Do Until objExcel.Cells(intRow,intCol).Value = ""
Fullname(n,1) = objExcel.Cells(intRow, intCol).Value
intRow = intRow + 1
n = n + 1
Loop
There has to be a better way. Can someone show me?
Thanks in Advance