我需要一些有关VBA中以下公式的帮助:
=IFERROR(VLOOKUP(J3,'Int Data'!D:J,7,0),"")
我尝试运行以下内容:
Range("AP2").Select
ActiveCell.Formula = "=IFERROR((VLOOKUP(RC[-1],(J3,'Agent Table'!D:J,7,0),"")"
Range("AP2").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Cells.Select
Cells.EntireColumn.AutoFit
当我尝试运行此语句时-
ActiveCell.Formula = "=IFERROR((VLOOKUP(RC[-1],(J3,'Agent Table'!D:J,7,0),"")"
我得到了:
运行时错误'1004'
能否请您告知此声明有什么问题?