I have a VB6 (Classic VB, not .NET) project. On Form.Load, I need to populate six arrays to feed into about a dozen Combo boxes.
Currently, I have my main list in an Excel sheet. An Excel macro looks at all my info and generates a Word document with six tables. (Word and Excel are 2000.) When my VB form loads, it opens the Word doc and iterates the tables, putting Table1 into Array1, etc. This is slow going!
I used the Word doc with Tables because it was easy to get six different tables of data into one file, and yet separate the info into arrays. The only other way I could think was to have the Excel macro write six different text files, then open those one by one and read into the arrays at Form.Load.
Is there a better, faster, easier way to set up the data from Excel to be read into the arrays?
Currently, I have my main list in an Excel sheet. An Excel macro looks at all my info and generates a Word document with six tables. (Word and Excel are 2000.) When my VB form loads, it opens the Word doc and iterates the tables, putting Table1 into Array1, etc. This is slow going!
I used the Word doc with Tables because it was easy to get six different tables of data into one file, and yet separate the info into arrays. The only other way I could think was to have the Excel macro write six different text files, then open those one by one and read into the arrays at Form.Load.
Is there a better, faster, easier way to set up the data from Excel to be read into the arrays?