I have some formula that I need to enter in a cell and fill down using a macro
the last forumla requires quote marks around the 'Very Likely Projects' and the 'Prospects'
writing it like this in VBA causes an error as it sees the first quote as the end of the statement.
how can I get around this?
Code:
Range("C2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],[sheamcat.xls]Sheet1!C1:C4,3,0)"
Range("D2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],[sheamcat.xls]Sheet1!C1:C4,4,0)"
Range("E2").Select
ActiveCell.FormulaR1C1 = "=IF(O2=1, D2, IF(O2>0.49, "Very Likely Projects", "Prospects"))
Range("C2:E2").Copy
the last forumla requires quote marks around the 'Very Likely Projects' and the 'Prospects'
writing it like this in VBA causes an error as it sees the first quote as the end of the statement.
how can I get around this?