Coding an own Office.CommandBar

  • Thread starter Michael Mueller
  • Start date
M

Michael Mueller

Hi.

Stumbled over a problem while coding my own Office.CommandBar.
I would like to use a button of the type msoControlButtonPopup or
msoControlSplitButtonPopup, but I'm not able to create one - I always get an
error message. Words or Excels own buttons of this style can be used by
giving their IDs.

Is it possible to create an own msoControlSplitButtonPopup?

Thanks
Michi
 
C

Cindy M.

Hi Michael,
Stumbled over a problem while coding my own Office.CommandBar.
I would like to use a button of the type msoControlButtonPopup or
msoControlSplitButtonPopup, but I'm not able to create one - I always get an
error message. Words or Excels own buttons of this style can be used by
giving their IDs.

Is it possible to create an own msoControlSplitButtonPopup?
No, with VBA you can use only the basic button types (msoControlButton,
msoControlEdit, msoControlDropdown, msoControlComboBox, or msoControlPopup).
The Popup buttons (msoControlPopup) work for right-click menus and regular
menus.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
M

Michael Mueller

Hi Cindy.
No, with VBA you can use only the basic button types (msoControlButton,
msoControlEdit, msoControlDropdown, msoControlComboBox, or msoControlPopup).
The Popup buttons (msoControlPopup) work for right-click menus and regular
menus.

I already thought of something like this.

Thanks anyway
Michi
 
P

Perry

Is it possible to create an own msoControlSplitButtonPopup?

I guess one could come up with a UserControl that looks like or -in best
case scenario-
is a duplicate of the Split button popup control.
I've seen developers make beautifull UserControls and -in doing so- spent a
lot of hours
developing that, only to find out that the re-usability turned out to be
close to zero.

What's the purpose?
What do you want to achieve?

These are more opportune questions to be answered and maybe people here can
come up with a
workable work-around for you ...

--
Krgrds,
Perry

System:
Vista/Office Ultimate
VS2005/VSTO2005 SE
 

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