Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Open Workbook in separate window

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Open Workbook in separate window

pd,

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

Windows(ThisWorkbook.Name).Activate

HTH,
Bernie
MS Excel MVP


"pdberger" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default Open Workbook in separate window

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

"pdberger" wrote in message
...
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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 open files in their own separate window David Dyer Excel Discussion (Misc queries) 2 April 8th 08 04:53 AM
Open a separate Excel Program in a new window Duke Excel Discussion (Misc queries) 0 September 28th 06 12:00 PM
How can I open from Web Excel Files in a separate Window? KUR Excel Discussion (Misc queries) 0 March 27th 06 09:06 PM
can't open new worksheets in a separate window 3R's Excel Discussion (Misc queries) 2 November 9th 05 02:33 AM
Open separate window Robbin Excel Worksheet Functions 2 September 1st 05 01:03 PM


All times are GMT +1. The time now is 01:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"