Results 1 to 4 of 4
  1. #1
    gstylianou is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2013
    Posts
    167

    New Ribbon with drop down menu

    I greet all the friends of the forum,




    Does anyone know how I can create my own Ribbon which include drop down menus?

    Regards,
    Attached Thumbnails Attached Thumbnails RibbonStyle.png  

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Normally, this stuff is managed through the new Ribbon. I think you can still manipulate the Menu Bar. Have not tried it though.


    I believe that would be accomplished through the Command Bar Collection. It looks like you have a custom "Menu Bar" so it should just be a matter of customizing it some more.
    http://msdn.microsoft.com/en-us/libr...ffice.10).aspx

    You would want to add buttons/controls to the custom command bar
    http://msdn.microsoft.com/en-us/libr...ffice.10).aspx


    Here is an example of adding controls to an existing Menu Bar. May have to tweak it for VBA 2007
    http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
    Code:
    This following example adds a temporary pop-up control named "Custom" at the end of the active menu bar, and then it adds a button control named "Import" to the Custom pop-up command bar.
    
    Set myMenuBar = CommandBars.ActiveMenuBar Set newMenu = myMenuBar.Controls.Add(Type:=msoControlPopup, _ Temporary:=True) newMenu.Caption = "Custom" Set ctrl1 = newMenu.Controls _ .Add(Type:=msoControlButton, Id:=1) ctrl1.Caption = "Import" ctrl1.TooltipText = "Import" ctrl1.Style = msoButtonCaption

  3. #3
    gstylianou is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2013
    Posts
    167
    Thanks a lot.. i will check it

    Regards

  4. #4
    gstylianou is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2013
    Posts
    167
    Morning from Cyprus,

    I thing its very complicated for me to do that..!! I don't have the knowlage in vba to do it......

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 01-02-2014, 05:51 AM
  2. Drop Down Help Menu
    By dandoescode in forum Access
    Replies: 1
    Last Post: 08-07-2012, 02:51 AM
  3. Drop down menu help
    By whojstall11 in forum Access
    Replies: 6
    Last Post: 03-07-2012, 01:51 PM
  4. Replies: 3
    Last Post: 11-29-2011, 07:01 AM
  5. Drop Down Menu Parameters
    By spoonman in forum Programming
    Replies: 5
    Last Post: 08-18-2011, 02:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums