Hi, after entering a value in a cell, I'd like to use a macro shortcut to calculate that value in a formula.
For an example:
ActiveCell.FormulaR1C1 = "=100*K/BAZ" (where "K" and "Baz" are named ranges)
works and shows the formula when the cell is selected but always calculates with the value 100.
ActiveCell.FormulaR1C1 = ActiveCell.Value * Range("K").value / Range("Baz").value
also works but gives out the result, the formula can't be seen.
When I tried to write ActiveCell.Value * R1C1 style address, I keep getting value returned 0, or a division to 0 error, although there referenced cells are not zero.
How do I write it so that the formula uses the value in the selected (active cell) and when the macro calculation is done, it also shows the formula?
Thank you!
Ezybao