Suppress Code Window

D

dchman

I have an application in which I add code to a form at runtime. When that
section of code runs, the VBA code window opens up and stays open. Anyone
know of a way to suppress the code window at runtime?

thanks
 
E

ElGato

This has happened several times with me too, and I found the following to work:

Try Debug->Compile. If 'Compile' is disabled, then type something in the
code window and then delete what you've typed, and then click Debug->Compile.
Then Save the changes to the form or close the database and click 'Yes' when
it asks if you would like to save the changes.
 
D

dchman

Doing that at least moves the VBA code window to the background, but it is
still open. Did you have the same issue, and if so, did you figure out how
to close the VBA window through code?
 
Top