Simply testing if column G is nil. It is one of the condition for that particular task.![]()
If Trim((x(i, 7))) = vbNullString Then
The reason forgetting the error is this line.
The max column loop the X array can take is 5, which is E. If you change it to G, you would not get an error.![]()
x = ws.Range("A1:E" & ws.Cells.Find("*", , , , xlByRows, xlPrevious).Row)
Bookmarks