1
我正在尝试使用R1C1引用在Excel VBA中使用动态范围来自动填充公式。使用R1C1自动填充范围
而不是使用这样的:
Sheets("my_sheet").Range("A2").AutoFill Destination:=Range("A2:A:"&row_count), Type:=xlFillDefault
我写了下面的:
Sheets("my_sheet").Cells(2, 17).AutoFill Destination:=Sheets("my_sheet").Range(Cells(3, 17), Cells(row_count, 17)), Type:=xlFillDefault
这似乎并没有工作,虽然并返回以下:
Run-time error '1004':
AutoFill method of Range class failed.
有什么建议吗?