Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vba Excel - passing public variables

Status
Not open for further replies.

ChrisTheAncient

Technical User
Dec 22, 2002
169
GB
I have found what, to me, is an unusual problem!

I can pass public declared boolean flags between procedures with absolutely no hassle.

Except...

In Excel, the Sub Auto_Close() procedure seems to set any of these flags back to 'False' as the sub proc starts running - no matter what I do! And I need them to stay true :eek:(

Has anyone had/cured/got round this problem?

Chris

*************************************
OK, I'm stoopid. But I'm good at it!
*************************************
 
Could you give more code details?

combo
 
Hi Combo

I eventually cured all my problems by going down the BeforeClose route.

Chris


*************************************
OK, I'm stoopid. But I'm good at it!
*************************************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top