Hi all
I have a simple VBA script that is writing formulas to Excel. In Excel, the formula will look something like this:
="'"&A3&"'"
Note the high commas bracketing the cell reference.
I am not sure what to do in VBA to combine cell reference and string. Here is what I have (which is not really working):
Ideally, I would like to keep the R1C1 cell reference style.
Thanks in advance
I have a simple VBA script that is writing formulas to Excel. In Excel, the formula will look something like this:
="'"&A3&"'"
Note the high commas bracketing the cell reference.
I am not sure what to do in VBA to combine cell reference and string. Here is what I have (which is not really working):
VBA Code:
Sub Quote()
ThisWorkbook.ActiveSheet.Range("H3").FormulaR1C1 = Chr(39) & "=R3C1" & Chr(39)
End Sub
Ideally, I would like to keep the R1C1 cell reference style.
Thanks in advance