E
Ed
I need to run through a doc and grab some text items, write these
strings into an array, and then at the end read the array into table
cells. I did it with a one-dimension array. But for some reason my
brain's drawing a blank on how to work with a multidimensional array.
Let's say I'm going to grab five strings from each doc. I've got a
count of all the files I'm going to process (cntFiles) and I'll
iterate to that count. So I declare this like
Dim ary1(cntFiles,5) As String
???
Then I write to it with
For x = 1 to cntFiles
ary1(x,1) = String1
ary1(x,2) = String2
ary1(x,3) = String3
ary1(x,4) = String4
ary1(x,5) = String5
Next x
??
And read back using similar syntax??
Do I have this right? If not, corrections are most welcome!
Ed
strings into an array, and then at the end read the array into table
cells. I did it with a one-dimension array. But for some reason my
brain's drawing a blank on how to work with a multidimensional array.
Let's say I'm going to grab five strings from each doc. I've got a
count of all the files I'm going to process (cntFiles) and I'll
iterate to that count. So I declare this like
Dim ary1(cntFiles,5) As String
???
Then I write to it with
For x = 1 to cntFiles
ary1(x,1) = String1
ary1(x,2) = String2
ary1(x,3) = String3
ary1(x,4) = String4
ary1(x,5) = String5
Next x
??
And read back using similar syntax??
Do I have this right? If not, corrections are most welcome!
Ed