Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2003, 10:20 PM
Pj Pj is offline
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Pj
Default Split MRU Button (Outlook Command Bars)

Hi everyone,

I'm trying (so far unsuccessfully) to create a SplitMRUPopup type control on a Command Bar in an Outlook Add-in written in VB. Documentation is really crappy on the use of the different types of command bar controls. Basically, I can get a drop-down popup menu of buttons with:
  Set bar = m_ActiveExplorer.CommandBars.Add("TEST")
  Set pop = bar.Controls.Add _
(Office.MsoControlType.msoControlButtonPopup)
  Set btn = pop.Controls.Add(Office.MsoControlType.msoControlB utton)

but as soon as I introduce the msoControlSplitButtonMRUPopup type in the Set pop... line, I get an Invalid procedure call error.

Any ideas, suggestions forthcoming will be greatly appreciated.

Ciao,



Pj Lightfoot
Software Developer
Performance Solutions, Ltd.





Similar Threads
Thread Thread Starter Forum Replies Last Post
'Hidden' Command Button David Mulvey Word VBA 0 January 9th, 2007 11:21 PM
How to delete the added button in outlook haiying Access VBA 0 June 10th, 2005 07:10 AM
help using split command chrisangus@btinternet.com Beginning VB 6 2 June 23rd, 2003 12:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.