Open Workbook in separate window

P

pdberger

With help from folks here, I've written a short code to open another workbook
as my primary workbook opens. However, it does so in the existing window.
The other workbook just has reference data, is password-protected and, in
this context, just behaves as a nuisance.

I'd like it to open but otherwise stay lurking in the background somewhere.

I'm using workbook.open, and checked the command but there isn't an option
to tell the 'called' workbook to stay minimized.

Should I essentially treat this step as somewhat of a subroutine? That is,
would an act like placing the cursor in the workbook I'm actually using cause
it to come to the front again?
 
B

Bernie Deitrick

pd,

After the line that opens the workbook, try adding code like this:

Windows(ThisWorkbook.Name).Activate

HTH,
Bernie
MS Excel MVP
 
W

William Benson

How would you like to:

When you open primary, open the other also
-- make it hidden
-- make a Right-Click menu item to unhide it
-- on either workbook allow a right-click menu to re-hide it
-- when it closes, not prompt to be saved (so it won't be bugging the
user)?

If so, send me the
paths to each file and their name
which one should be primary and which hidden

and I will send the events and the code to handle them.

Bill
 

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