Home » excel » Searching for function usage in Excel VBA

Searching for function usage in Excel VBA

Posted by: admin April 23, 2020 Leave a comment

Questions:

I have inherited an Excel spreadsheet with many VBA functions and it’s not clear where (or even if) a lot of them are being used.

Is there a way to find the usage of a VBA function, or perhaps search for invocations of it, similar to the way you can click on a function/method in a standard IDE and find its usage throughout the codebase? I am looking for the cells from which the functions could be being called, not invocations from within other VBA functions.

How to&Answers:

In VBA – Use CTRL+F and select “Current Project” to find each usage of the function name in the project.

On Worksheet – Use CTRL+F and make sure “Look In” is set to “Formulas.” Then click “Find All” to find each usage of the function name in the worksheet.