下面一行会导致"应用程序定义或对象定义错误":
Sheet1.Range("B4").Formula = "=""Plutonium Resale Revenues""!K19"
Excel 2010 .
这对我有用:
Sheet1.Range("B4").Formula = "='Plutonium Resale Revenues'!K19"
如果您想将公式从表钚转售收入K19复制到表1 B4,请使用此方法。
Sheets("Plutonium Resale Revenues").Range("K19").Copy
Sheets("sheet1").Range("B4").PasteSpecial xlPasteFormulas
Application.CutCopyMode=False