Re: Prevent multiple instances of Excel from starting

Tech-Archive recommends: Speed Up your PC by fixing your registry



I didn't have any confusion as regards multiple Excel instances vs multiple
xl files. I was trying to ascertain the process involved with your third
party app, and specifically the problem when multiple instances exist (I'm
not trying to imply there isn't a problem).

Does your app call Excel to reference a particular file (which may or may
not be open), or does some event (at application or workbook level) in a
given instance call your app. Or does your app simply require use of Excel
for it's own particular needs, eg calculation, generating files etc.
Depending on what does what to what there might be an easy solution.

FWIW changing Tools ? General > Ignore Other Applications
(xlApp.IgnoreRemoteRequests) will prevent multiple instances starting if
user loads a file from Explorer. But that won't stop all means of starting
multiple instances. Indeed should you prevent user from trying to.

All Office products that run concurrently seem to "know" about each other.

Yes and no!

They interact and react to each other. For example Outlook uses Word to
format emails and spellcheck.

Office apps share common components, but Outlook doesn't start an instance
of Word to use those tools, neither does a given app automatically know what
others are running, and especially how many

Regards,
Peter T


"Robert Mulroney" <''''robert.mulroney@xxxxxxxxx''''> wrote in message
news:8BA53310-0DDE-445C-9752-A79718FCA468@xxxxxxxxxxxxxxxx
Perhaps I didn't make it clear initially, the problem I have stems from
having multiple instances of the "Excel Task" running at the same time,
not
multiple xl documents.

To see what I mean: Double click your excel icon. Minimise the window and
double click the icon again. Go to your task manager (sort by task name)
and
you'll see that there are two instances of Excel processing at the same
time.
That's want I want to prevent, not multiple windows on the start bar.

I don't have some malicious intent on making life difficult by randomly
closing peoples work for them. It would be much better to prevent a new
excel
instance starting then have to close it after start - hence my original
question. The idea of closing tasks came up if it is not possible to
prevent
multiple start-ups. In that sence my criteria for closing excel apps would
be
"if one is running close the new one and maximise the old"

All Office products that run concurrently seem to "know" about each other.
They interact and react to each other. For example Outlook uses Word to
format emails and spellcheck. That's one of the coolest things about
developing with Office tools. It's this interaction between two instances
of
Excel that seem to be causing the problem, confusing the 3rd party
product.

Hopefully I'm making more sence. Thanks for you help.

- Rm



.



Relevant Pages

  • Re: Avoiding shared instances of MS Word (VB6)
    ... > DanS, ... the same with Excel gives you multiple intances. ... > I don't know why these 2 app should behave differently, ...
    (microsoft.public.vb.general.discussion)
  • Re: close excel from VB6
    ... Indeed all well known in Excel land. ... In VBA to do otherwise would cause the app to blow (if the ... MSO app from a VB6.exe or are a MSO addin interfacing with VB6.DLLs. ... learning programming was a good idea because my years of business ...
    (microsoft.public.vb.general.discussion)
  • RE: My apologies, I did not mean that to you,at all.
    ... have been using Vista/Office 07 since beta, and I could always view multiple ... When you double click on any XLS file a separate instance of excel will run. ... I have word and excel in multiple separate windows which allow me to resize ... Why we would need Powerpoint in separate instances are for the same reason. ...
    (microsoft.public.excel.setup)
  • My apologies, I did not mean that to you,at all.
    ... I have word and excel in multiple separate windows which allow me to resize ... Why we would need Powerpoint in separate instances are for the same reason. ...
    (microsoft.public.excel.setup)
  • RE: More about trying to automation multiple Excel instances
    ... Conserning "impossibility to automate multiple Excel Instances" - my be I ... Microsoft Online Community Support ...
    (microsoft.public.excel.programming)