+ Reply to Thread
Results 1 to 8 of 8

Custom Right-Click Menu & Submenu

  1. #1
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Custom Right-Click Menu & Submenu

    Hi,

    I want to create a right click custom menu so that it only shows the my options. By this I mean that I want to hide or disable the default options.

    I know I can disable options this way:

    Please Login or Register  to view this content.
    It's possible to disable all the default options? How can I get the list of all CommandBars("Cell")?

    Regards,
    Elio Fernandes
    Last edited by efernandes67; 08-05-2010 at 06:35 PM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,291

    Re: Custom Right-Click Menu

    Is this for a specific sheet, or for all workbooks? If it's for a specific sheet, then I would create your own commandbar and show that instead of the default one rather than altering the Cell menus (note: there are two of them).
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: Custom Right-Click Menu

    Hi,

    It's for a specifc sheet. How I show my commandbar instead of the default?

    Regards,
    Elio Fernandes

    Quote Originally Posted by romperstomper View Post
    Is this for a specific sheet, or for all workbooks? If it's for a specific sheet, then I would create your own commandbar and show that instead of the default one rather than altering the Cell menus (note: there are two of them).

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,291

    Re: Custom Right-Click Menu

    In the worksheet's code module (right-click the sheet tab, and choose View Code):
    Please Login or Register  to view this content.
    then in a normal module:
    Please Login or Register  to view this content.
    adjust the number of controls and macro names as required.

  5. #5
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: Custom Right-Click Menu

    Thanks, it's just what I need.

    Regards,
    Elio Fernandes

  6. #6
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: Custom Right-Click Menu

    Hi,

    You helped me in my post "Custom Right-Click Menu".
    Can you tell me how to create a submenu similar to this:

    item1
    --------
    item2 - subitem1
    - subitem2
    --------
    item3


    Regards,
    Elio Fernande

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,291

    Re: Custom Right-Click Menu

    Here's a revised version of the original code - it adds two buttons, then a submenu with another two buttons:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: Custom Right-Click Menu & Submenu

    Thanks agian.

    Regards,
    Elio Fernandes

+ 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