If you re-type the formula there, preceded by an apostrophe ('), it will
display the formula rather than the result. This could also be done by macro
if you have many different formulae and don't want to type them all out
again.
Public Function GetFormula(ByRef cell As Range) As String
GetFormula = cell(1).Formula
End Function
Usage:
B1: =GetFormula(A1)
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.