+ Reply to Thread
Results 1 to 6 of 6

vba code to remove the tools menu

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    vba code to remove the tools menu

    Hi,

    Is there code available that will hide the Tools Menu within excel?

    Thank you in advance,

    JP
    Last edited by jpruffle; 09-03-2009 at 08:37 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: vba code to remove the tools menu

    Hi,

    Try this - it's from memory, so no promises!

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Re: vba code to remove the tools menu

    Thank you for the reply. I am still new to VBA how do I call this line of code?

  4. #4
    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: vba code to remove the tools menu

    Good afternoon jpruffle

    You need to make it part of a routine, such as :
    Please Login or Register  to view this content.
    You can run it by going to Tools > Macro > Macros, select test and click Run.
    You will have to make an alternate way of calling it after you remove your Tools menu though.
    To reinstate your Tools menu change the word False to True.

    You could replace the main line with this line to ghost the Tools menu out instead of hiding it outright :
    Please Login or Register  to view this content.
    HTH

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

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: vba code to remove the tools menu

    Being new to VBA here's a warning. You must take extreme care when removing toolbars and generally changing user settings that you restore them exactly after your code has fiished.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Re: vba code to remove the tools menu

    That's been of great help. Thank you very much.

    JP

+ 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