As I am stepping through this section of the code it works but by the time it gets to a certain row it crashes my excel.
Is there a better way to write to my excel sheet? It writes a value cell by cell, not sure why its crashing!
Is there a better way to write to my excel sheet? It writes a value cell by cell, not sure why its crashing!
Code:
For j = 1 To nCols
If fromTop Then writeVal = arr(i, j) Else writeVal = arr(UBound(arr, 1) - i + 1, j)
thisWS.Cells(startRow + i - 1, startCol + j - 1).Value = writeVal
Next j