VBA Function to Show Cell Formula

Associated Files Download Links


The following UDF will return the formulae for a given cell reference:

VBA Function to Show Cell Formula

So if we have:
139 show cell formulae

Where the cell B7 has the formulae : ‘=MAX(B5:G5) then we can type in another cell:
B9 = Show_Cell_Formulae(b7)

139 show cell formulae part 2

And we get a text string with the cell reference and the formulae contained within it.

To download the .XLSM file for this article, click here

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro – A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!

alt text

Learn More!


<<Return to VBA Examples

Did you find this VBA tutorial useful? Then share it with your friends and colleagues:

You may also like some of this related content...

VBA has many string functions that will allow you to manipulate and work with text
VBA Round The VBA Round Function rounds numbers to a specified number of digits. Syntax
While working in VBA, you often need to convert strings into lowercase, uppercase or proper
Every character in Excel has an assigned number code to itself. The Chr function in
In this article, you will learn how to use the IsEmpty function in VBA to
Ads