Code dependency reporting

G

Guest

Has anyone got a method for scanning VBA code and reporting references to
custom Subs, Functions, Classes, and Forms?

I want to package some of my macro library for distribution, but I don't
want to include subprograms that aren't actually required by the exported
subset.
 
G

Guest

That site has some very useful code (thanks for the link!), but it doesn't
say how to do what I want.

I'm looking for a routine that will identify all calls to Subs, Functions,
Forms, and user-defined classes. In other words, what a compiler does in one
of its passes through the source code. This would allow a developer to ensure
that an Add-In actually contains all the Subs etc. that the macros require
beforehand, rather than relying on trial & error after releasing the Add-In
to end-users.
 

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