Consulting

Page 1 of 2 1 2 LastLast
Results 1 to 20 of 23

Thread: Solved: Remove Help Menu

  1. #1
    VBAX Regular
    Joined
    May 2006
    Posts
    67
    Location

    Solved: Remove Help Menu

    Hope anyone can help.

    I have a file that when opened makes the excel default menus invisible and creates custom menus. This is fine however the help menu dropdown is still available in the menubar. Is there anyway to also remove this?

  2. #2
    Be careful what you ask for ... you might get it. Are you sure you want to remove Help??

    Try this:
    Right click on an empty spot in the toolbar.
    Select "Customize" from the list.
    Right click on the Help icon.
    Click on the "Delete" option.
    Click "Close" on the dialog box to get out of Customize.

    Is it gone?

  3. #3
    Administrator
    2nd VP-Knowledge Base
    VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Don't delete it. I would be too afraid to lose it for good if I did that.

    Try this:
    [vba]
    Commandbars(1).Controls("Help").Visible = False[/vba]
    And if you want it to toggle:
    [vba]
    Commandbars(1).Controls("Help").Visible = Not commandbars(1).Controls("Help").Visible[/vba]
    HTH




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by d4vem
    Hope anyone can help.

    I have a file that when opened makes the excel default menus invisible and creates custom menus. This is fine however the help menu dropdown is still available in the menubar. Is there anyway to also remove this?
    Surely, if you are disabling the Worksheet Menu commandbar, Help goes with it.

  5. #5
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Not sure if the OP means the Help menu or the Help search bar..

  6. #6
    VBAX Regular
    Joined
    May 2006
    Posts
    67
    Location
    I mean't the Help searchbar

  7. #7
    Administrator
    2nd VP-Knowledge Base VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Do you mean the "Type a question" box?

    If so, I found some info here:
    http://www.annoyances.org/exec/show/article08-101

    But I'm not sure how to get to it by VBA...yet....




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  8. #8
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    LOL! You'll like just how easy this is.

    [vba]Application.CommandBars.DisableAskAQuestionDropdown = True[/vba]

    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  9. #9
    Administrator
    2nd VP-Knowledge Base VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Quote Originally Posted by Ken Puls
    LOL! You'll like just how easy this is.

    [vba]Application.CommandBars.DisableAskAQuestionDropdown = True[/vba]


    ugh....how did I miss that!!! LOL!




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  10. #10
    VBAX Regular
    Joined
    Aug 2006
    Posts
    55
    Location
    See this site : http://www.newbytes.be/

    and look :
    Instellingen herstellen (REPAIR Commandbars)
    • Geknoeid in Excel? Uw werkbalken verdwenen? De snelmenu van uw rechtermuisknop heeft te veel menuonderdelen gekregen? Dit is de oplossing!
    Wen jou open the file click the first button.

    If you see in VBA :

    Sub WerkbalkenTerug()
    Application.CommandBars(1).Enabled = True
    End Sub


    P.

  11. #11
    VBAX Regular
    Joined
    Aug 2006
    Posts
    55
    Location
    sorry, can't delete post?
    It was the rong answert

    P.

  12. #12
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    No problem, you posted a correction. No worries.

  13. #13
    VBAX Regular
    Joined
    May 2006
    Posts
    67
    Location
    That worked fine.

    Thanks very much Ken

  14. #14
    VBAX Regular
    Joined
    May 2006
    Posts
    67
    Location
    Sorry it works fine in Windows 2003 but fails in Windows 2000. Is there any reason that can happen?

  15. #15
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Windows won't have anything to do with it, but Office will. I don't think the help drop down was in Excel 2000, but I could be wrong (don't have it here to test).

  16. #16
    VBAX Regular
    Joined
    May 2006
    Posts
    67
    Location
    Therefore is there my way of identifing what Office environment you are operating on? Or is that a seperate post?

  17. #17
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Any Office application | Help | About Microsoft xxxxxx

  18. #18
    Administrator
    2nd VP-Knowledge Base VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Quote Originally Posted by firefytr
    Windows won't have anything to do with it, but Office will. I don't think the help drop down was in Excel 2000, but I could be wrong (don't have it here to test).
    I use 2000 at work, and it's not there for me.....




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  19. #19
    VBAX Regular
    Joined
    May 2006
    Posts
    67
    Location
    If you read the initial post it was to hide the help drop down menu in the menu bar. The problem is this

    Thanks from Ken and it works fine in Office 2003 (which is my verson)

    However on implementing to the client they are on Office version 2000 and it fails. Therefore is there anyway to do either of the following?

    1. Understand what Office version is currently installed
    2. Have a comand that is compatible accross Office 2000 & 2003

    Thanks in advance

  20. #20
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    To test the version...

    [vba]If Int(Application.Version) > 9 Then
    Msgbox "You are using Excel 2002 (XP) or greater.", vbinformation
    Else
    Msgbox "You are using Excel 2000 or below.", vbinformation
    End if[/vba]

    HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •