尝试使用宏将单元格中的单元格链接到其他工作表。使用宏记录后我得到;
ActiveCell.FormulaR1C1 = "=Total!R[3]C[3]"
ActiveCell.Offset(1, 0).Range("A1").Select
我想将Total表中的行增加3,使列保持不变。让我入门的任何帮助都会很棒,谢谢。
答案 0 :(得分:0)
使用类似的东西:
Dim i As Long
Dim cell As Range
Set cell = ActiveCell
For i = 3 To 30 Step 3 ' change 300 to the relevant max num for you
cell.FormulaR1C1 = "=Total!R[" & i & "]C[3]" ' you'll need to change/test this
Set cell = cell.Offset(1, 0)
Next i