Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Code dependency reporting

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.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Code dependency reporting

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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Code dependency reporting

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.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Code dependency reporting

MZ-Tools addin ?
http://www.mztools.com/index.htm

NickHK

"Allen_N" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
inter-dependency kc Excel Worksheet Functions 1 February 13th 09 03:52 AM
dependency changes after row insert John Excel Discussion (Misc queries) 1 January 14th 08 10:22 AM
Drop down dependency stuff Pasty Excel Worksheet Functions 2 November 13th 06 10:13 AM
Dependency problem Sinus Log Excel Programming 3 January 9th 06 12:02 AM
Cell reference dependency Jubelnar[_5_] Excel Programming 3 September 28th 05 07:10 AM


All times are GMT +1. The time now is 04:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"