Code not saving in Class Module

E

Excel Monkey

The strangest thing is happening in my Personal.xslb folder. I make changes
to code, save it, close it and then reopen to find that the changes are not
there. This includes added user forms. The File has code in ThisWorbook,
three standard modules and a Class Module with Application Level events.

Any ideas why this would be happening?

Thanks

EM
 
E

Excel Monkey

For what I can tell this is whats happening:

I am in a class module being used for Application Events. The changes I am
trying to make are in two event procedures:

Private Sub App_SheetActivate(ByVal sht As Object)

and

Private Sub App_SheetDeactivate(ByVal sht As Object)

Whenever I edit the code in these procedures and hit SAVE and the Shutdown,
the revisions disappear when I reopen.

Thanks

EM
 
E

Excel Monkey

Ahhhhhhh. I realized that as my code was within event procedures in a class
module, I need to hit the STOP button in the VB Editor prior to making my
changes otherwise, the changes would not be saved.

Thanks

EM
 

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