I was trying to avoid an approach using code on the theory that it
would probably be more time than its worth (at least to me). Having
said that, if you really want to do it in code, the way to go would be
to write some code scripting the VBIDE (a surprisingly but not
hopelessly complicated thing to do) to create a general purpose
routine for either adding or deleting the counters in a clean way. To
get a handle on the VBIDE object model, see the excellent on-line
article:
http://www.cpearson.com/excel/vbe.htm
Hope that helps
-John Coleman
On Feb 20, 11:46 am, MikeZz <Mik...@discussions.microsoft.com> wrote:
> Another easier way could be this?...
> Copy All Module Code to excel worksheet,
> Write a routine to read each line of code using offset from the top line.
> If the line includes a code... ie not blank and doesn't start with comment,
> Insert a line of code: ECL = ECL +1
> Paste array of new code (with the ECL Counter on every other line) into a
> new sheet.
> Copy all code from the new sheet and paste back into the module I'm checking.
> Clean up any bugs and run.
>
> Sounds plausible to do either way but I think I'll see if there is a utility
> to somehow do it for me.
>
> Thanks for your help! It's always interesting to find a way to do something
> that can't be done.
>
>
>