+ Reply to Thread
Results 1 to 3 of 3

Excel Popup Menu Control

  1. #1
    James
    Guest

    Excel Popup Menu Control

    I am trying to program a custom menu for an Excel application, and so far I
    have managed to move the File menu to the end of the list and have multiple
    File menus with only three having the MenuItems in them.
    How do I rearrange the menu order and remove the unwanted File menus?

    James

  2. #2
    Norman Jones
    Guest

    Re: Excel Popup Menu Control

    Hi James,

    Try:

    '===========>>
    Public Sub Tester
    Application.CommandBars("Worksheet Menu Bar").Reset
    End Sub
    '<<===========


    ---
    Regards,
    Norman


    "James" <James@discussions.microsoft.com> wrote in message
    news:2102F0A2-E457-4C76-94BE-14FCB1612C20@microsoft.com...
    >I am trying to program a custom menu for an Excel application, and so far I
    > have managed to move the File menu to the end of the list and have
    > multiple
    > File menus with only three having the MenuItems in them.
    > How do I rearrange the menu order and remove the unwanted File menus?
    >
    > James




  3. #3
    chijanzen
    Guest

    RE: Excel Popup Menu Control

    James:

    only Reset the File menus

    Dim cbr As CommandBarControl
    For Each cbr In Application.CommandBars.FindControls(ID:=30002)
    MsgBox cbr.Caption
    cbr.Reset
    Next



    --
    天行健,君*以自強不息
    地勢坤,君*以厚德載物

    http://www.vba.com.tw/plog/


    "James" wrote:

    > I am trying to program a custom menu for an Excel application, and so far I
    > have managed to move the File menu to the end of the list and have multiple
    > File menus with only three having the MenuItems in them.
    > How do I rearrange the menu order and remove the unwanted File menus?
    >
    > James


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1