I have an 2D Array Dim Line_Qty(6, 2) with values in it like the following:
**Date Line_No Quantity**
2016-11-15 1 5856
2016-11-15 2 5451
2016-11-15 3 5499
2016-11-15
2016-11-15
2016-11-15
What i want to find is the index of the first blank which is Line_Qty(4, 1)
the purpose of this is that i am pasting these values in excel sheet and i want to stop pasting till the last entry of Quantity.
my pasting code is this
For i = 0 To 6
For j = 0 To 2
Worksheets("DY_SET").Cells(i + 1, j + 1).Value = Line_Qty(i, j)
Worksheets("DY_SET").Range("A" & i + 2).NumberFormat = "yyyy-mm-dd"
Next j
Next i
Hope i made myself clear, and thanks in advance