help on adding a commandbar using VB com addin

K

kishore1021

Adding Commandbar to the New Mail message Inspector Window
I was trying to add a new tool bar and also customize my new toolbar t
automatically contain some commands programmatically. I wanna write
COM add-in to OutLook that adds a new toolbar to the OutLook'
Toolbar.
This tool bar should apear only in new mail window.

There are two commands(buttons) by name "Digitally sign Message" an
"Encrypt Message Contents and Attachments".

These are present in the Tools -> Customize -> Commands -> I
categories select Standard -> on the Right side, if you scroll down yo
can see commands(buttons) by name "Digitally sign Message" and "Encryp
Message Contents and Attachments".

On the whole, what i am trying for is , placing the above two command
on my new toolbar that i will create using com addin.

So, . These buttons are already present in the standard command ba
(This buttons will come only when you try to customize the tool bar o
new mail). We need to add this Digitally sign message and Encryp
message contents and Att…. Buttons to the outlook programmaticall
using some com addin or some other technology.

The buttons should appear on their own toolbar in the Wordmail o
Outlook message entry windows.

There are two different email-editing solutions in Outlook -Mail Edito
and Wordmail.

Since this code calls the Outlook Sign and Encrypt functions it can b
a standalone object (not connected to any other module) and should no
have any dependencies besides Outlook.

Could you please help in on writing a com addin or some macro where i
will create a new commandbar and will place these two buttons on tha
new command bar.

Please do help me in this regard and thank you in advance for the help
 
K

Ken Slovak - [MVP - Outlook]

You should post programming questions in one of the programming
newsgroups for a faster answer in most cases.

Download and look at the ItemsCB COM addin sample on the Resources
page at www.microeye.com for a look at COM addin best practices and
how to handle CommandBars.

You will need to iterate the controls of the existing toolbar to get
the ID's of the buttons you want to add to your toolbar. Toolbars in
WordMail items are a problem, you can't use Outlook code for that, you
need Word macro code.

Also, since you are using that horrid ExcelTips interface which
doesn't post any part of a preceding thread please paste that in when
you post responses in a thread, it makes it easier to follow.
 

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