+ Reply to Thread
Results 1 to 3 of 3

Enable / Disable CommandBarControl

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-24-2005
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    378

    Enable / Disable CommandBarControl

    I am not sure what I did, but I disabled Worksheet Menu Bar > Tools > Macros

    It is grayed out and even restarting Excel does not make it available again.

    Can anyone tell me how to once again make it available?

    All I know is I was working with creating VBA procedures before this happened...
    Thanks!
    Dennis

    I am using Windows 7 and Office 2007, all of my posts are based on this.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello DCSwearingen,

    Place this macro in a a standard module and run it. It will re-enable your Macro selection on the menu.
    Sub RestoreMacros()
    
      Dim CmdBar As Object
      Dim Ctrl As Object
      
        Set CmdBar = CommandBars("Worksheet Menu Bar")
        Set Ctrl = CmdBar.Controls("&Tools")
         
        Ctrl.Controls("&Macro").Enabled = True
        
    End Sub
    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    03-24-2005
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    378

    This Worked Perfectly

    Thank You Very Much!!

    I don't have any idea how I disabled that menu item.

+ 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