How to find out which application is launched on click of button in the office toolbar

S

sajin

Hi all,
I created a addin for word , excel and powerpoint , the thing is that
the button is installed in these application . but i need to find out
the application where the user has clicked the button . whether he
clicked the button from a word or excel or powerpoint , i am using vb
..net 2005 , the importance here is that according to the application i
have to do the process seperately.

Plz help me

Thanks in advance
Sajin
 
C

Cindy Meister

In your code, you should find the OnConnection event procedure. That passes
in an application object. You should be able to query it's Name property
(returns a string) and evaluate that (in a Select Case).
 

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

Top