Hi,
I have been cracking my head trying to figure this out. I'm trying to create a function that will fill 8 columns and an unspecified number of rows in a spreadsheet with data from an arraylist. Basically each column has a different heading and will contain different data and the number of rows will be different depending on the parameters passed. I will be determining the number of rows from the length of another arraylist
To start, I read that we could initialize our arraylist without setting its size. I did this.
Dim ArrayValues() As String
Then, after finding the number of rows I will have from my data, I redimensionalized it as such
ReDim ArrayValues(2 To 51, 1 To 8)
Is that even right? :'(
This is just dummy data but this is essentially how I'm trying to fill the arraylist. I'm not even sure if this is working.
And for actually outputting these data onto the worksheet, I have met no luck.![]()
Please Login or Register to view this content.
I've been using google like crazy to help me but to no avail. Mostly I find help for populating one column with data. What about 8 columns and a variable number of rows.
![]()
HELP! I'm really stuck. Thank you in advance for your help!![]()
Bookmarks