I am using a formula to show a cells formula in another cell.
I want to show the values of each reference in this formula, instead of the reference.
Ex:
=$R$16+R19*($T$15-$R$16)
Want it to be
=3+2*(4-2)
Function I am using now to show formula as it is
Function GetFormula(Cell As Range) As String
GetFormula = Cell.Formula
End Function
Here is a very basic example which can handle cases like
Assumptions:
Sample Worksheet
Code:
Output
Note:
Let me know if the above code fails in a particular scenario and I will update the code.