commandbars

  1. K

    Worksheet_BeforeRightClick - run macro automatically when right click on cell and select "New Note"

    Dear Guys, I have an older macro which ran well in earlier versions: when I right clicked on a cell and selected "Insert Comment": a macro ran automatically: of course I added following code to the appropriate sheet Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As...
  2. Devin

    Shortcut Key Launch Short-circuits Macro

    I have a bit of code that will work when launching via the ribbon (or from VB), but not will not work when launched via a shortcut key. The activate tab box will pop up when launched via the shortcut key, but it won't go to the tab selected. This is for the box that pops up when there are more...
  3. L

    Multiple FindControls ID's

    I'm trying to create a macro to remove multiple items from the right click menu within a sheet. Thus far I have: Dim Ctrl As Office.CommandBarControl For Each Ctrl In Application.CommandBars.FindControls(ID:=855) Ctrl.Enabled = False How can I in-cooperate multiple menu items to...
  4. S

    converting CommandBars VBA code to work with ribbons

    Hi all, Brand new to this forum, but not to Excel. I've been coding VBA for many years. An app that I created 7 or 8 years ago does a lot of manipulation of the commandbar controls, including hiding and/or disabling many of the items on built in commandbars and adding custom items to those...
  5. Jon von der Heyden

    Cannot delete CommandBar Control

    Hi All Yet another little problem that I am struggling to solve. I have a userform frmSetup. It has once command button and when clicked it is supposed to run routine 'BuildUI'. 'BuildUI' will also trigger another routine right at the start, callled 'ClearUI'. ClearUI is supposed to clear...
  6. B

    Toolbar Macro Template

    I need a macro that will hide all visible toolbars with the exception of select few. I have tried everything. Nothing seems to work. Loops do not seem to work well with "Application.commandbars". I need a macro that will only display the following...

Some videos you may like

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top