Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Is it possible to prevent opening of workbooks in the current instance of Excel?

I have created a stand-alone VB program (not VBA) which utilizes the
Excel application library object to create and manipulate some
workbooks. The instance of Excel launched by the VB program is not
visible by default. Basicly my program only displays a textbox
showing the progress of the program.

However, if a user decides to open an Excel workbook by clicking on a
xls file in Explorer *while the VB program is still running*, the
hidden instance of Excel will immediately become visible to handle the
user's workbook and thus exposing the workbooks my VB program is
updating. When this happens, the user has the ability to interrupt my
program's update process by clicking on or closing the workbooks or
even Excel itself.

Is there a way to prevent a hidden instance of Excel from opening the
user workbook launched through Windows Explorer? Basically I would
like the OS to launch another instance of Excel if the current
instance is not visible.

FYI, I am using Excel 2002 (XP) and VB6 (SP5) on Windows XP
Professional.

Any information would be greatly appreciated.

Thanks.
-jl


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
Prevent multiple workbooks in same Excel instance Leon[_2_] Excel Discussion (Misc queries) 8 September 24th 09 08:30 PM
Excel opening another instance automatically DanF Excel Discussion (Misc queries) 0 July 9th 08 03:11 PM
opening a new instance of Excel gb4 Setting up and Configuration of Excel 0 April 10th 08 04:48 PM
keep Excel from opening 2nd instance widman Excel Discussion (Misc queries) 0 April 30th 06 01:35 PM
Keep Excel from opening new instance widman Excel Discussion (Misc queries) 7 October 1st 05 01:53 AM


All times are GMT +1. The time now is 05:45 PM.

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

About Us

"It's about Microsoft Excel"