KCalvert
03-30-2003, 03:28 PM
I know this formula works when I enter it right in the excel sheet, but I'm trying to enter this formula to the sheet via vba. I used the .Formula command before but this has quotes and different character that are probablly conflicting with vb to cause the error.
Could you tell me what characters are bad here, and what to do about them?
ActiveSheet.Range("B" & NextRow).Formula = "=IF(C" & NextRow & "<>"", VLOOKUP(C" & NextRow & ",[EstProductList.xls]Main!$B$2:$AH$1500,2,FALSE), "")"
Thanks.
Could you tell me what characters are bad here, and what to do about them?
ActiveSheet.Range("B" & NextRow).Formula = "=IF(C" & NextRow & "<>"", VLOOKUP(C" & NextRow & ",[EstProductList.xls]Main!$B$2:$AH$1500,2,FALSE), "")"
Thanks.