J
John
Well I am stuuck - I am Sure someone out there can unstick me...
I have a legcy text file report that I am developing a VBA module to
translate into an Excel spreadsheet, which then will be used for several
things, one of which is to import into the database. There are 91 fields
used in the report. I would like to create an array and then assign the
names of the fields to the array so I can use a counter to populate the
spreadsheet with the field names. Something like:
Dim fldNames(91) as String
fldNames = "ActId","Act_Title", "Budget", "Actual", ... etc.
I would then like to use the array to populate an excell spreadsheet
For i = 1 to 91
xlsht.Cells(1, i).value = fldName(i)
next i
Question is how do I easily populate fldNames(91) with the string values for
the field names?
I have a legcy text file report that I am developing a VBA module to
translate into an Excel spreadsheet, which then will be used for several
things, one of which is to import into the database. There are 91 fields
used in the report. I would like to create an array and then assign the
names of the fields to the array so I can use a counter to populate the
spreadsheet with the field names. Something like:
Dim fldNames(91) as String
fldNames = "ActId","Act_Title", "Budget", "Actual", ... etc.
I would then like to use the array to populate an excell spreadsheet
For i = 1 to 91
xlsht.Cells(1, i).value = fldName(i)
next i
Question is how do I easily populate fldNames(91) with the string values for
the field names?