I have a worksheet with entries in column A and row 1:
It is possible with the following code to run a For-Loop through any amount of entries in column A:
For i = 1 To Worksheets("Sheet1").Range("A1").End(xlDown).Row
'' Do whatever
Next i
But it is not possible to run a For-Loop through any amount of entries in row 1 with the code below and my question is why?
For i = 1 to Worksheets("Sheet1").Cells(1).End(xlRight).Column
'' Do whatever
Next i
