PC Review


Reply
Thread Tools Rate Thread

Code dependency reporting

 
 
=?Utf-8?B?QWxsZW5fTg==?=
Guest
Posts: n/a
 
      28th Mar 2007
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.


 
Reply With Quote
 
 
 
 
=?Utf-8?B?RlN0MQ==?=
Guest
Posts: n/a
 
      28th Mar 2007
hi,
see this site.
http://cpearson.com/excel/vbe.htm
Regards
FSt1

"Allen_N" wrote:

> 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.
>
>

 
Reply With Quote
 
=?Utf-8?B?QWxsZW5fTg==?=
Guest
Posts: n/a
 
      29th Mar 2007
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.

"FSt1" wrote:

> hi,
> see this site.
> http://cpearson.com/excel/vbe.htm
> Regards
> FSt1
>
> "Allen_N" wrote:
>
> > 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.
> >
> >

 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      29th Mar 2007
MZ-Tools addin ?
http://www.mztools.com/index.htm

NickHK

"Allen_N" <(E-Mail Removed)> wrote in message
news:B0C3ECA5-01BF-48D1-9958-(E-Mail Removed)...
> 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.
>
> "FSt1" wrote:
>
> > hi,
> > see this site.
> > http://cpearson.com/excel/vbe.htm
> > Regards
> > FSt1
> >
> > "Allen_N" wrote:
> >
> > > 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.
> > >
> > >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Dependency Reporting Judi Microsoft Access 5 13th Jun 2008 05:02 AM
reporting theft of code =?Utf-8?B?U3VlSW5DaW5jeQ==?= Windows XP Security 2 2nd Nov 2005 04:38 PM
Error reporting code examples Ron Weldy Microsoft ASP .NET 0 3rd Jun 2005 07:20 PM
Dependency Error: The dependency <dll> in project <project> cannot be coppied to the run directory becuase it would conflict with dependency <dll> Jay A. Moritz Microsoft VB .NET 2 14th Apr 2005 07:57 AM
Reporting all code/queries that affect or use a particular table Kathryn Microsoft Access Reports 1 16th Dec 2004 11:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:57 PM.