adding gap(separator) to an office(excel) command bar (tool bar) from add in using COM

M

Mousam

Hi All,
I am developing an excel add in using COM (in C++) . I can
successfully add button, combo box etc. to an office (excel) command
bar (tool bar) from my add in but I am not able to add a gap
(separator) to an office (excel) command bar (tool bar) from my add
in.

Can any one please tell me how to add gap (separator) to an office
(excel) command bar (tool bar) from excel (office) add in using COM?
Any pointer of example source code would be of great help.

Thanks & Regards,
Mousam Dubey
 
M

Mousam

Hi All,
I am developing an excel add in using COM (in C++) . I can
successfully add button, combo box etc. to an office (excel) command
bar (tool bar) from my add in but I am not able to add a gap
(separator) to an office (excel) command bar (tool bar) from my add
in.

Can any one please tell me how to add gap (separator) to an office
(excel) command bar (tool bar) from excel (office) add in using COM?
Any pointer of example source code would be of great help.

Thanks & Regards,
Mousam Dubey

Hi All,
Sorry for the inconvenience caused, but read
Any pointer of example source code would be of great help.

as

Any pointer or example source code would be of great help.

Thanks & Regards,
Mousam Dubey
 
J

Jason Lepack

The gap seperator is a property of the button.

Hi All,
Sorry for the inconvenience caused, but read

as

Any pointer or example source code would be of great help.

Thanks & Regards,
Mousam Dubey
 
M

Mousam

The gap seperator is a property of the button.

Hi Jason,
It would be great if you can please tell me the name of that
property of the button. I tried to find out about such a property but
I am not able to find it out that which property of button causes it
to behave like a gap (separator).

Note: I am creating add in for Excel 2002.

Thanks & Regards,
Mousam Dubey
 
J

Jason Lepack

You could have saved yourself alot of legwork by starting at object
explorer and not the internet.

A quick perusal of ObjectExplorer in VS2003 in the
Microsoft.Office.Core library shows CommadBarControl Interface has a
boolean property called "BeginGroup". It is inherited by
CommandBarButton, CommandBarCombo, etc.

Cheers,
Jason Lepack
 
M

Mousam

You could have saved yourself alot of legwork by starting at object
explorer and not the internet.

A quick perusal of ObjectExplorer in VS2003 in the
Microsoft.Office.Core library shows CommadBarControl Interface has a
boolean property called "BeginGroup". It is inherited by
CommandBarButton, CommandBarCombo, etc.

Cheers,
Jason Lepack

Thanks a lot Jason, It really helped.
 

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