Check for orphan functions

C

chris_culley

Hi there,

I've just started donig some development work on a (large) vba model.
I'm removing some old functionality from it (stripping out unused
macros and buttons).

The easy part of this is removing the "top level" macros; I was
wondering if anyone had any ideas for finding "orphaned" functions -
ones which are coded but never actually called in the rest of the
project?

Any help would be greatfully received :)

Cheers

Chris
 
J

Jim Cone

Chris,
Do a search for the function name.
If the name is not found outside of the function code then it is not called.
Make sure you do a project wide search.
-then-
Comment out the entire function and compile the project.
If the code compiles the function is not needed.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


<[email protected]>
wrote in message
Hi there,
I've just started donig some development work on a (large) vba model.
I'm removing some old functionality from it (stripping out unused
macros and buttons).
The easy part of this is removing the "top level" macros; I was
wondering if anyone had any ideas for finding "orphaned" functions -
ones which are coded but never actually called in the rest of the
project?
Any help would be greatfully received :)
Cheers
Chris
 

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.

Ask a Question

Top