COM Add-in to create Custom menu for office 2000 & XP

K

Karthik

Hi,

I am developing a COM Add-in to create custom menu in the
standard Menu bar of office components. The custom menu
items listed are different for Outlook and Word. This is
the area where I am facing problem.

In Outlook, If I set the Mail Format option to "Use
Microsoft Word to edit e-mail messages", then I am getting
Word as my e-mail message editor. In this case, I am
getting the Word menu, instead of Outlook menu in the Menu
bar of e-mail message editor. I want to know how to get
rid of this? This is one issue.

When Word and Outlook are open, and by some means I manage
to get the Outlook menu instead of Word menu in the e-mail
message editor, then the menu in word is getting affected.
There the menu intended for Outlook is being displayed in
the Word's Menu bar

Thanks,
Karthik.
 
K

Karthik

Hi,

Can I know how to check the host application is Outlook?
Do you have any sample code for that?

Thanks,
Karthik
 
B

Bhaski

Dim oHostApp As Object

Set oHostApp = Application
If oHostApp = Outlook.Application Then
........do whatever u want
 

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