+ Reply to Thread
Results 1 to 6 of 6

modify the menu bar

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    modify the menu bar

    I have some code that loads and unloads a command under the "DATA" menu bar.

    Is it possible to add an item to the menu bar and put the commands under the new menu item?

    For example:

    Add "XYZ Consulting" as a menu bar item so it would like as follows:

    File, Edit, Insert, Format, Tools, Data, Window, XYZ Consulting, Help.

    Please Login or Register  to view this content.
    Last edited by maacmaac; 03-21-2009 at 08:54 AM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: modify the menu bar

    Good evening maacmaac

    this should get you started, creating your own menu item and two sub items below it :

    Please Login or Register  to view this content.
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Re: modify the menu bar

    That works great. It so much cleaner doing it this was as before I was putting button bars on other sheets and assigning macros to those. Just a couple of questions (1) what is the find control ID 30010? Where do I find a list of numbers if such a list exists? (2) you have .FaceId = 123 as comment. Why is this a comment and if it was not a comment, what would this part of the code do? Thanks

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Re: modify the menu bar

    I just found the code to identify the face ID codes. Found the code from "The Spreadsheet Page". The link is http://spreadsheetpage.com/index.php...andbar_images/

    I would still like more information on FindControl ID if anyone has it. Thanks.

  5. #5
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: modify the menu bar

    Hi maacmaac
    Quote Originally Posted by maacmaac View Post
    I would still like more information on FindControl ID if anyone has it. Thanks.
    Some menu items in Excel have little icons next to the (for example File > Save has a little old fashined floppy disc image). the FaceID allows you to add a little image to your menu from the set of several thousand provided with Excel.

    More is explained here :
    http://spreadsheetpage.com/index.php...andbar_images/

    You can download a FacieID browser from here :
    http://skp.mvps.org/faceid.htm

    Why did I comment it out? 'Cos it was late, and I couldn't be bothered looking for a suitable image (not all numbers have an image assigned, so it could have been blank) - I just left it in to show it was ine if the options that can be used in this sort of code.

    HTH

    DominicB

  6. #6
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Re: modify the menu bar

    DominicB,

    Thanks for all the information. This is very helpful.

+ 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