Hi I am trying to link a loop in VBA to a referenced worksheet. Specfically I am trying to let values in two sheets equal each other i.e.
For i = i_start To 17
For j = j_start1 To 14
Worksheets("Analysis").Cells(i, j + 55).Value = Worksheets("Analysis FR").Cells(i + 164, j + 54).Value
Next j
Next i
However the loop gets violated whenever I move a column. Does anyone know what the bext way to achiev this would be? Many thanks
For i = i_start To 17
For j = j_start1 To 14
Worksheets("Analysis").Cells(i, j + 55).Value = Worksheets("Analysis FR").Cells(i + 164, j + 54).Value
Next j
Next i
However the loop gets violated whenever I move a column. Does anyone know what the bext way to achiev this would be? Many thanks