+ Reply to Thread
Results 1 to 4 of 4

Adding menu item in VBA

  1. #1
    Registered User
    Join Date
    08-13-2017
    Location
    India
    MS-Off Ver
    2010
    Posts
    46

    Adding menu item in VBA

    Currently, I have a worksheet which has several data. I have created a button at the end of the sheet and when the user hits the button I call my VBA functions that do some computation.

    Now, instead of the button I want to add a menu item (or an icon in the menu) so that when the user hits the icon I call my function to do the computation.

    I do not know how to add the icon. Can anyone please help to add a custom menu item / icon in the menu ?

    Thanks a lot

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Adding menu item in VBA

    Hi ateestructural...

    How did you create your button...Form or Active X control...
    To add a icon button or image...just download required image and insert image into sheet. Then right click on image and assign your macro...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Adding menu item in VBA

    Hi,

    Where in the menu do you want the button? If the Add-Ins tab is acceptable, you can use code (using Commandbars) to add it; otherwise you will need to modify the CustomUI part of the workbook- http://www.rondebruin.nl/win/s2/win001.htm
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Adding menu item in VBA


+ 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. Adding a value to a dropdown menu item
    By ispellcorrectly in forum Excel General
    Replies: 7
    Last Post: 02-05-2014, 09:40 PM
  2. [SOLVED] Adding a item to the right click menu?
    By silkworm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-24-2005, 01:28 AM
  3. Adding Sub Menu Item to Current Custom Menu
    By Renato in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2005, 08:55 PM
  4. Excel VBA - problem with adding item to Tools menu
    By Mick Turner in forum Excel General
    Replies: 2
    Last Post: 12-14-2005, 05:25 AM
  5. Adding menu item to Tools
    By Kent McPherson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2005, 04:35 PM
  6. Adding a Menu Item into a sheet as a button
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2005, 03:06 PM
  7. Adding an Item to the Main Menu
    By Jack Gillis in forum Excel General
    Replies: 2
    Last Post: 02-28-2005, 06:06 AM
  8. C# example adding menu item from AddIn
    By steve platt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2005, 11:46 AM

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