Thanks again Dave, now I got it. Next question - Since the
Activate...Deactivate subs must be in ThisWorkbook, is there a method
available to insert them programmaticaly.
Guess I'm looking for an OLE method here, to do the job from outside of
Excel.
It seems the M$ method is M3 on the excel icon next to File menu, See
Code' and type in the subs. I really don't want to have my users do that
if at all avoidable...
- Lynn.
> Make sure the Workbook_activate and workbook_deactivate are both under the
> ThisWorkbook module (not under a worksheet.
[quoted text clipped - 44 lines]
>>
>>TIA - Lynn.
Dave Peterson - 29 Dec 2005 12:17 GMT
I would think that it would be much easier to create the code while you're
creating the workbook.
But Chip Pearson has some notes that will show you how to write code that writes
code:
http://www.cpearson.com/excel/vbe.htm
> Thanks again Dave, now I got it. Next question - Since the
> Activate...Deactivate subs must be in ThisWorkbook, is there a method
[quoted text clipped - 57 lines]
> >>
> >>TIA - Lynn.

Signature
Dave Peterson
lynn@debscave.com - 02 Jan 2006 16:40 GMT
Final thanks to Dave for the guidance and references. The Chip Pearson
page finally set me right, and FWIW I wound up using plain 'ole perl
to achieve the design spec.
To avoid irrelevant xposting, working example is over on..
http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-users/2960933
Thanks - Lynn.
> I would think that it would be much easier to create the code while you're
> creating the workbook.
[quoted text clipped - 3 lines]
>
> http://www.cpearson.com/excel/vbe.htm
<--snip->