Can you tell how Excel is launched?

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

Guest

We have an Excel add-in. We would like to know if the application is started
from the menu by the user or started by another Office application. Is using
the ConnectMode parameter in the OnConnection call the best way to do this?
 
Hi Gail,

Gail said:
We have an Excel add-in. We would like to know if the application is
started from the menu by the user or started by another Office
application. Is using the ConnectMode parameter in the OnConnection
call the best way to do this?

Not sure this will help, but look at the UserControl property of the
Application object. Note that this will only give you a definitive answer
if the app was created programmatically AND is hidden.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]
 
Thanks! That worked perfect.

Jake Marx said:
Hi Gail,

Gail said:
We have an Excel add-in. We would like to know if the application is
started from the menu by the user or started by another Office
application. Is using the ConnectMode parameter in the OnConnection
call the best way to do this?

Not sure this will help, but look at the UserControl property of the
Application object. Note that this will only give you a definitive answer
if the app was created programmatically AND is hidden.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]
 
Is there a way to determine what application launched Excel?

Thanks,
Gail

Jake Marx said:
Hi Gail,

Gail said:
We have an Excel add-in. We would like to know if the application is
started from the menu by the user or started by another Office
application. Is using the ConnectMode parameter in the OnConnection
call the best way to do this?

Not sure this will help, but look at the UserControl property of the
Application object. Note that this will only give you a definitive answer
if the app was created programmatically AND is hidden.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top