PC Review


Reply
Thread Tools Rate Thread

Check for orphan functions

 
 
chris_culley@yahoo.com
Guest
Posts: n/a
 
      4th May 2007
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      4th May 2007
MZtools says it can do some of it:

http://www.mztools.com/index.htm

--
Regards,
Tom Ogilvy


"(E-Mail Removed)" wrote:

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

 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      4th May 2007
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


<(E-Mail Removed)>
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

 
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
Excel - Check Box Functions Mags Microsoft Excel Worksheet Functions 2 6th May 2009 07:03 PM
Column Check? - Statistical functions? fedude Microsoft Excel Worksheet Functions 2 14th Apr 2008 02:06 AM
How can I check for redundant Macros and Functions =?Utf-8?B?QnJpYW4gUm9jaGU=?= Microsoft Access VBA Modules 2 14th May 2006 08:58 AM
functions to check it a worksheet exist in a workbook Tang Microsoft Excel Worksheet Functions 3 8th Aug 2004 10:46 AM
Re: VBA error check using Excel functions manjingo Microsoft Excel Programming 0 4th Jun 2004 05:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 AM.