Hello,
I am trying to use VBA to insert formulas in different cells in my worksheet but am having some issues. Here is what I have so far and what issues I am seeing.
What I want to do is insert a formula into H2 that is = G2*1.01 but I want it to leave the formula in the cell.
1) When I use, Range("H2").Formula = "G2*1.01" it calculates this correctly, but it does not leave the formula in the cell.
2) When I use, Range("H2").FormulaR1C1 = "=R2C7 * 1.01" it leaves the formula in the cell, but it leaves it as $G$2 *1.01 which I also don't want.
3) When I use, Range("H2").FormulaR1C1 = "=R[2]C[7] * 1.01" it does exactly what I want, except the formula that it returns is O4 *1.01. Somehow it took R[2]C[7] and turned it into O4....
Any help would be appreciated!
Thanks
Yoandsm
Bookmarks