How to print formulas and their results on the same page?

  • Thread starter Thread starter Dmitriy Kopnichev
  • Start date Start date
Hi Dmitriy

Alt-F11
Insert>Module from the menubar
paste the functions in this module
Alt-Q to go back to Excel

Function ShowAllInfo(rng As Range)
' show Formula and Result from cell
ShowAllInfo = Right(rng.Formula, Len(rng.Formula) - 1) _
& " = " & rng.Value
End Function

Function ShowFormula(rng As Range)
ShowFormula = rng.Formula
End Function


In a worksheet cell you can use these formulas

=ShowAllInfo(A7)

Or

=Showformula(A7)
 
Back
Top