# point 1 - whats the correct way to enter this formula using vba
the quotation marks (") is the problem, so when i enter this part of the formula ("No"),"Yes") the vba code will not work
Code: Select all
Sub insert_New_Material_formula()
Range("I2:I2000").Formula = "=IFERROR(IF(VLOOKUP(C2,'[5. Inventory Analysis Report.xlsm]Bayad'!$B:$D,3,FALSE),"No"),"Yes")"
End Sub
# point 2 - column "I" range should be as long as column A, im not sure how to do this
thanks in advance