G
Guest
In a macro, I wanted to be able to update a formula. I manually updated the
formula on the sheet and it works fine. I simply copied the formula from the
sheet and put it in quotes see below, but I get an error
"Application-defined or object-defined error"
Sheets("test").Range("A1").Formula = "=IF(ISERROR(VLOOKUP($AE6,'Change
Report 6.0'!$C$20:$G$61,AG$4,FALSE)),"",VLOOKUP($AE6,'Change Report
6.0'!$C$20:$G$61,AG$4,FALSE))"
The Help on the error seems to suggest I tried to cause an error, clearly
this is not my intention. Any ideas?
formula on the sheet and it works fine. I simply copied the formula from the
sheet and put it in quotes see below, but I get an error
"Application-defined or object-defined error"
Sheets("test").Range("A1").Formula = "=IF(ISERROR(VLOOKUP($AE6,'Change
Report 6.0'!$C$20:$G$61,AG$4,FALSE)),"",VLOOKUP($AE6,'Change Report
6.0'!$C$20:$G$61,AG$4,FALSE))"
The Help on the error seems to suggest I tried to cause an error, clearly
this is not my intention. Any ideas?