Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default How can I create several instances of Excel ?

Hi,

How can I create several instances of Excel ? eventually 2-3 in one go ?

Usually, I do
Set oXL = WScript.CreateObject("Excel.Application")
followed by
oXL.Workbooks.Add
but, if the user has already Excel open, then my data is put in his current
workbook, no good

The should be something like oXL.Workbooks.Create but can't find it

Thanks
Raymond


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How can I create several instances of Excel ?

According to help, CreateObject should do the job:

Use CreateObject when there is no current instance of the object. If an
instance of the object is already running, a new instance is started, and an
object of the specified type is created. To use the current instance, or to
start the application and have it load a file, use the GetObject function.

It is unclear why you would want more than one instance with the attendant
overhead.

Regards,
Tom Ogilvy
wrote in message
e...
Hi,

How can I create several instances of Excel ? eventually 2-3 in one go ?

Usually, I do
Set oXL = WScript.CreateObject("Excel.Application")
followed by
oXL.Workbooks.Add
but, if the user has already Excel open, then my data is put in his

current
workbook, no good

The should be something like oXL.Workbooks.Create but can't find it

Thanks
Raymond




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
Don't Allow Two Instances of Excel Stratuser Excel Discussion (Misc queries) 2 February 22nd 10 10:23 PM
Excel in Two instances [email protected] Excel Discussion (Misc queries) 3 January 28th 09 03:30 PM
Create list of unique instances from list of multiple Instances Dishon Excel Worksheet Functions 0 March 3rd 08 11:46 AM
How do I create two separate instances of Excel? Flowermountain Excel Discussion (Misc queries) 1 February 1st 06 05:48 PM
How do I create two instances of excel. And not just in the tskbr Dastrain Setting up and Configuration of Excel 1 July 30th 05 01:39 AM


All times are GMT +1. The time now is 10:52 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"