To run an application wtih the start-up of another

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
How can i start an applicaiton whenever a specific application starts?

Let me say in that way:
when someone starts excel, i need my application to start.

I don't want my application is always running and checking whether excel is
started or not. Is there another way: by using registry or something?
 
Hi,
How can i start an applicaiton whenever a specific application starts?

Let me say in that way:
when someone starts excel, i need my application to start.

I don't want my application is always running and checking whether excel is
started or not. Is there another way: by using registry or something?

No, you'll need to have a listener running to trap whenever Excel
opens, I don't believe there is an easy way to "attach" your program
to another.

However there are two ways I can think of to accomplish this (sort of)

1) Replace the standard excel shortcuts with one that will start your
program and Excel
2) Change the program associated with .xls files from Excel to your
program. Then when your program loads, create an instance of Excel,
open the file the user requested, and show the Excel workbook.


Thanks,

Seth Rowe
 
Hi,
How can i start an applicaiton whenever a specific application starts?

Let me say in that way:
when someone starts excel, i need my application to start.

I don't want my application is always running and checking whether excel is
started or not. Is there another way: by using registry or something?

Another idea is to open Excel, edit Excel's template file and create a
macro. Put the VBA code:

shell("C:\Myprog.exe")

under the "Application_StartUp" procedure (for Excel's template
spreadsheet - which is always loaded even if they double click a file)
and when Excel loads, it will call this VBA procedure automatically,
which can be used to start your application. The drawback is that you
will need access to change the template file on ALL the machine's that
need your software to start as well. Essentially you need to modify
your applications installer to change their Excel template file, which
isn't too hard.

Phill
 
Thanks.
I decided on programming a listtener

Phillip Taylor said:
Another idea is to open Excel, edit Excel's template file and create a
macro. Put the VBA code:

shell("C:\Myprog.exe")

under the "Application_StartUp" procedure (for Excel's template
spreadsheet - which is always loaded even if they double click a file)
and when Excel loads, it will call this VBA procedure automatically,
which can be used to start your application. The drawback is that you
will need access to change the template file on ALL the machine's that
need your software to start as well. Essentially you need to modify
your applications installer to change their Excel template file, which
isn't too hard.

Phill
 
Back
Top