When closing module, does not exit visual basic editor?

G

Guest

I have vb code that will automatically compile the application if in a non
compiled state. After recompiling, I close the module but the visual basic
editor remains open. How do I force the editor to close?

DoCmd.OpenModule "ModGlobals"
DoCmd.SelectObject acModule, "ModGlobals"
RunCommand (acCmdCompileAndSaveAllModules) 'Compile and save
DoCmd.Close acModule, "ModGlobals" 'Close module - all
but xSplash?
DoCmd.Close acModule, "form_xSplash Screen" 'Closes module but editor
open

Any ideas?

Brenda
 
M

Michel Walsh

Hi,


Won't close it, but will hide it:

VBE.MainWindow.Visible = False



Hoping it may help,
Vanderghast, Access MVP
 
G

Guest

Thank you.

This will help while running the procedure, however, I will still need to
close the window.
 

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