It happens that avi formulated :
Thanks to all of you
Looks that Garry's approach is the right one
Best regards
Avi
Avi,
Thanks for the feedback! Glad it worked for you.
<FYI
Not meaning to discount any of the advice given by others (who are
cleary more experienced than me), but I've run into too many projects
that fail miserably using code under ThisWorkbook whenever the
slightest thing that can go wrong does go wrong. Not saying it's code
errors per se, just that for some reasons known only to Excel the files
get corrupted and things go awry. I was advised to use the older
Auto_Open/Auto_Close routines by Rob Bovey some years back and so have
never had an issue ever since. Also, every client project I fix that
way also has never had their issues repeat.
So while the RunAutoMacros method may indeed be legacy, IMO it still
works better than the newer event procedures.
</FYI
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc