Keeping a workbook hidden when opened via VBA???

  • Thread starter Thread starter Simon Lloyd
  • Start date Start date
S

Simon Lloyd

Hi all,

Does anyone know how to keep a workbook hidden that is opened via VB
and visible when opened normally i.e with a double left click or fro
choosing File and then Open??


Simo
 
Have a look the Caller property in help. If the Caller
is "An Auto_Open, Auto_Close, Auto_Activate, or
Auto_Deactivate macro" you could make the
activewindow.visible property false.
Geof.
 
If you open it in VBA, then hide it with the same code. If you don't save
it, then it should be visible next time it is opened.
 

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

Back
Top