I need to copy specific ID numbers from one sheet to another. The structure of the table is always the same and ID numbers are always in same place, starting from cell B8, then B29, B50, B(n+21) and so on.
I recorded the following macro. I need a loop (cycle).
Sub Macro3()
ActiveCell.FormulaR1C1 = "=Hoja1!R[-4]C2"
Range("A13").Select
ActiveCell.FormulaR1C1 = "=Hoja1!R[16]C2"
Range("A14").Select
ActiveCell.FormulaR1C1 = "=Hoja1!R[36]C2"
Range("A15").Select
ActiveCell.FormulaR1C1 = "=Hoja1!R[56]C2"
Range("A16").Select
End Sub