How to add splitter in between 2 options of office context menu

A

Anita

hi all,

I am creating a Context Menu using following code:

CustomContextMenu = applicationObject.CommandBars.Add("ContextMenu",
Office.MsoBarPosition.msoBarPopup, missingValue, false);

Office.CommandBarButton contextMenuOption=
(Office.CommandBarButton) customContextMenu.Controls.Add
(Office.MsoControlType.msoControlButton, missingValue, missingValue,
missingValue, missingValue);

I want to add a splitter between 2 options of ContextMenu. i
tried giving caption as "-". However it does not work.

Any pointers on this would certainly help.

Thanks,
~Anita
 

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