我想简化成以下代码:
dim i%,j%
For i = 1 To 12
For j = 12 To 1 Step -1
ActiveSheet.Cells(4, i + 1).Select
ActiveCell.FormulaR1C1 = "= ''" & i & "月份奖金分配表''!RC[" & j & "]"
Next j
Next i
原来的代码运行没有错误,但是很繁琐,但运行简化后的代码时总是出现以下错误:应用程序定义或对象定义错误,停止在红色字体这一行,这是什么原因,求各位老师指点一下!