cdhoughton
Board Regular
- Joined
- Dec 5, 2003
- Messages
- 170
I have a VB script that adds a FormulaR1C1 value to a cell.
However, I need to set a part of the formula to a different value in another cell:
----------------------
No = Sheets("Management Information").Range("B48").Value + 7
Sheets("Sheet1").Range("A1").FormulaR1C1 = "=-INDIRECT(""'""&SheetName&""!$C$" & No & """)"
----------------------
At the moment the value is coming out at 7 and not recognising the first bit of the formula?!?
Any ideas?
However, I need to set a part of the formula to a different value in another cell:
----------------------
No = Sheets("Management Information").Range("B48").Value + 7
Sheets("Sheet1").Range("A1").FormulaR1C1 = "=-INDIRECT(""'""&SheetName&""!$C$" & No & """)"
----------------------
At the moment the value is coming out at 7 and not recognising the first bit of the formula?!?
Any ideas?