+ Reply to Thread
Results 1 to 5 of 5

Adding to Right-Click Context Menu

  1. #1
    Registered User
    Join Date
    04-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Adding to Right-Click Context Menu

    I'm not sure if this is complicated or if I am making it complicated in my mind.

    Objective: I would like to add a new item on the right-click context menu in excel. When this new item is clicked I would like it to open up a designated user form.


    So far I have figured out how to open a user form by overriding the right click menu completely and opening the user form. However, I want the user form to open only when selected on the right click menu.


    Is this complicated? If anyone has idea, guidance, or the solution that would be helpful.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Adding to Right-Click Context Menu

    This is how you add it

    Please Login or Register  to view this content.
    and to remove it

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Adding to Right-Click Context Menu

    Thank you!! It works great!

    I'll post my code as well to document it. Thank you again!

  4. #4
    Registered User
    Join Date
    04-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Adding to Right-Click Context Menu

    Since I wanted the Right-click item to appear in the entirety of the workbook I used Bob Phillips code as follows

    Please Login or Register  to view this content.
    To remove the item after excel closes, so the items don't continually build up, I used the "remove it" segment of code as follows

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Adding to Right-Click Context Menu

    Also, the idea was to open a user form from the new item on the right click menu. Bob Phillips' "add it" segment of code calls the macro .OnAction = "Another"

    I created a module and added the following code

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Add-In and Cell Context (Right-Click) Menu
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2014, 10:04 AM
  2. [SOLVED] Add-In & Cell Context (Right-Click) Menu
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-28-2014, 04:39 AM
  3. Screwed Up my Right Click Context Menu, Please Help
    By cpmame in forum Excel General
    Replies: 3
    Last Post: 03-12-2009, 12:13 PM
  4. Right-Click (Context Menu)
    By Kryptonix in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-25-2005, 11:05 AM
  5. [SOLVED] Right Click Context Menu
    By Guy Lapierre in forum Excel General
    Replies: 1
    Last Post: 03-30-2005, 07:06 PM

Tags for this Thread

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