我想编写一个代码以在范围(“c6:c205”)中插入以下公式。=IFERROR(VLOOKUP(C6;价格表!A5:F21997;2;FALSE);" ")
您能帮我更正以下代码吗?先感谢您。
For i = 6 To 205
Dim myFormula As String
myFormula = "=IFERROR(VLOOKUP(C"
myFormula = myFormula & i
myFormula = myFormula & ";Pricelist!A5:F21997;2;FALSE);"
myFormula = myFormula & " "" "
myFormula = myFormula & ")"
Range("E" & i).Formula = myFormula
Next