Properties of buttons on command bars


Posted by Pete M on January 16, 2002 5:43 AM

How do I pick up the property of a button on a command bar? I wish to know if it is a normal button or a drop down menu. I've tried looking at the help text but am getting lost in the different commands and properties that seem rather too similar!

Posted by Damon Ostrander on January 16, 2002 9:31 AM

Hi Pete,

If the Control is a CommandBarButton object then its Type property will be equal to msoControlButton (a predefined constant). If it is a drop down menu then its Type property will be set to msoControlComboBox.

Damon



Posted by Pete on January 18, 2002 4:18 AM

Many thanks,

Pete.