T
TFN
I'm programming a macro in Visual Basic and want the macro to insert a
formula in the worksheet using the ActiveCell.FormulaR1C1 property. I want
the formula to include an empty string, like this:
=IF(ISBLANK(A1);A1+8;"")
so that the cell is empty if A1 is blank, and otherwise the result of the
formula.
ActiveCell.FormulaR1C1 = "=IF(ISBLANK(A1);A1+8;"")"
is what I have attempted, but obviously this won't work as the " character
will end and restart the string without leaving " characters. How can I go
about having the " character included in the string?
formula in the worksheet using the ActiveCell.FormulaR1C1 property. I want
the formula to include an empty string, like this:
=IF(ISBLANK(A1);A1+8;"")
so that the cell is empty if A1 is blank, and otherwise the result of the
formula.
ActiveCell.FormulaR1C1 = "=IF(ISBLANK(A1);A1+8;"")"
is what I have attempted, but obviously this won't work as the " character
will end and restart the string without leaving " characters. How can I go
about having the " character included in the string?