ShowPopup does not work

  • Thread starter Thread starter Hans-Christian Francke
  • Start date Start date
H

Hans-Christian Francke

I tried the example from the VBA helpfile.

Dim myBar As CommandBar
Set myBar = CommandBars.Add(Name:="Custom", Position:=msoBarPopup,
Temporary:=False)
With myBar
.Controls.Add Type:=msoControlButton, ID:=3
.Controls.Add Type:=msoControlComboBox
End With
myBar.ShowPopup

However Commandbars is not recognized as an object even though Office 10.0
is referenced.
--

Thank for any help.

Kindest regards
HC Francke
 
In Outlook, CommandBars is a child object of Explorer and Inspector.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Thanks.

"Sue Mosher [MVP]" <[email protected]> skrev i melding
In Outlook, CommandBars is a child object of Explorer and Inspector.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top