Error while closing Excel

D

Daniel Altman

Hi all!

I am using Excel 2002 - SP2 in a W2K SP4.
It seems like Excel is trying to compile the code for a worksheet while I am
closing Excel. It is giving me a "Method or data member not found" in the
line

Me.label1.visible = true

This line is called during normal operation and it works fine, it seems like
the problem may be Excel trying to compile the code after destroying the
object label1 while closing.

I avoided it by selecting the "Compile on Demand" option, but I don't like
it (because the user of my program may deselect it again).

Any other ideas?
Any help will be appreciated!

======================================
Daniel Altman
Buenos Aires, Argentina
 
B

Bernie Deitrick

Daniel,

Try getting rid of the Me. and replace it with the name of the actual container:

Userform1.Label1......

HTH,
Bernie
Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top