
Use a user-defined function to display
formulas of a specific cell
Using this tip, you can look up the formula text of any cell. It is
similar to the keyboard shortcut <Ctrl+#>. Generate a
worksheet containing data and formulas, and then enter the
user-defined function shown below.
4
To make formulas visible:
1. Press <Alt+F11> to open up the Visual Basic Editor.
2. From the Insert menu, click Module.
3. Type the following function:
Function FormT(rng As Range)
FormT=""&rng.Formula
End Function
4. Return to the worksheet and type the following formula in
any cell: =FormT(A5).
5. Press <Enter>.
User-defined Functions 327
13
Figure 13-3