By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,983 Members | 1,468 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,983 IT Pros & Developers. It's quick & easy.

To run an application wtih the start-up of another

P: n/a
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?
Aug 10 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Aug 10, 4:18 am, KT1972 <KT1...@discussions.microsoft.comwrote:
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

Aug 10 '07 #2

P: n/a
On Aug 10, 9:18 am, KT1972 <KT1...@discussions.microsoft.comwrote:
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

Aug 10 '07 #3

P: n/a
Thanks.
I decided on programming a listtener

"Phillip Taylor" wrote:
On Aug 10, 9:18 am, KT1972 <KT1...@discussions.microsoft.comwrote:
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

Aug 17 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.