ShowPopup does not work

  • Thread starter Hans-Christian Francke
  • 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
 
S

Sue Mosher [MVP]

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
 
H

Hans-Christian Francke

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
 

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

Similar Threads


Top