1. Resize: run the following and check details on the sheet
Further details are available in VB help: Resize property
2. Redim
1 To Rows.Count - number of rows
1 To 3 - number of columns
If number of columns is not known you need to find it out before using Redim
Further details are available in VB help: Redim statement
3.
means the row j column 1 of the array result equals row i column 1 of data array. The line assigns value to left part of the equatation
4.
This line consists of two actions:
a) Replace - take a string and change all ", " instances to ",". This is done to delete a space after coma
b) Split - split string by ","
5.
Starting line of the loop with set start bound = 0 and end bound = m. It starts from zero because split returns zero-based array of values.
6.
We need to decrease row counter by one because when we get to the end bound of the loop the row counter will be increased by one but no "tests" will be assigned so the line as the loop ends and this row stays empty
Bookmarks