Graying Out Custom Menu Buttons When Sheet/book Protected?
Oct 6, 2009
is there a way to cause my custom menu items to grey out like the built-in ones, depending on the current selection or when the status of the active worksheet/workbook changes (e.g. when the book is protected to disallow certain actions)?
Obviously I can trap any problems once the associated VBA is invoked, but it'd be more professional if I could just prevent that from happening in the first place.
View 6 Replies
ADVERTISEMENT
May 29, 2007
I have a workbook that creates three temporary menu buttons when I open it. These work fine until I try and open more then 1 workbook at a time. This creates duplicate menu buttons (3 times the number of workbooks that I open).
I call up the procedure when each workbook is opened using this code in the "ThisWorkbook" code area: ....
View 9 Replies
View Related
Aug 6, 2008
I have a pair of radio buttons on an Excel 2007 sheet. I want the buttons to be clickable, but have the sheet protected.
Both are defined as unlocked. The Group containing the two buttons is also defined as unlocked.
But when I protect the sheet, one of the two buttons gets the pop-up saying the cell is protected - the other button is fine. I've even tried unlocking the cells behind the buttons, but it still pops up.
View 9 Replies
View Related
Jun 13, 2008
i am considering the use of custom menus in an Excel application. is it possible to limit the selection of menu items for each worksheet? for example, sheet 1 all menu items are available, sheet 2 all but 2 menu items are available, sheet 3 all but 5 items are available.
View 10 Replies
View Related
Jun 24, 2014
I have created a sub to add new controls to the "Cell" shortcut menu. Can I remove the standard "Cell" shortcut menu controls? if so how do you do it?
[Code] ......
View 4 Replies
View Related
Nov 20, 2011
Script that lists the caption names of all work sheet commandbar buttons, one script to list them on a worksheet and another to list them in a listbox.
View 5 Replies
View Related
Aug 19, 2009
I have a suite of subroutines and functions stored in an .xla file, which other users have access to. It's installed on the local machine via macro which installs a user defined menu to access them from. Howerver, when an XL chart worksheet is active, this menu doesn't appear and there are a couple of functions where it would be useful to have access to when viewing such a chart. I've noticed user defined toolbar icons are available in this view, so would like to use these to access the relevant routines. I know you can insert them in code (macro recorder) but is it possible to assign macros to them from the same code? Alternatively, is it possible to show my user defined menu in chart sheets as well as normal worksheets?
View 9 Replies
View Related
May 2, 2007
Is it possible to put the standard Excel buttons (as in the ribbon in 2007 or the toolbars in 2003) actually on the spreadsheet. I would like, for example, to put the " pivot table refresh button" on my spreadsheet somewhere in the middle, separate from the program. Can I extract or import these Excel program's buttons somehow to insert elsewhere?
View 3 Replies
View Related
Dec 28, 2012
When I protect my worksheet the option buttons, on occasion, give the error message "The cell or chart that you are trying to change is protected and therefore read only. To modify a protected cell or chart, first remove protection using the Unprotect sheet command. You may be prompted for a password." Sometimes I click on an option button and this error pops up and other times i can click the same button and no error occurs.
View 1 Replies
View Related
Aug 17, 2009
i had a play with a document that contains a custon menu bar and now the menu bar is always there.
the code that puts up the menu bar is ...
View 6 Replies
View Related
Mar 6, 2012
adding custom 16 x 16 buttons to toolbars, which weren't preset images or using the built in deisgner.
Was hoping there may be an add-in giving more variety of buttons or a way to import set images. Very frustrating as there are many microsoft 16x16 bmps / icons that would be ideal but the choice is extremely limited.
View 1 Replies
View Related
Jul 28, 2006
I have created 2 toolbar buttons which were attached to a macro that ran the original 'EditTenancy'. I now want to change these to use anew macro 'EditExistingTenancy' but cannot see how to do it as when I right click now I only get a toolbar list.
Do I have to creat 2 new toolbar buttons?
How do I get rid of the non-functioning ones?
View 4 Replies
View Related
Jun 12, 2008
Can I create a messagebox which has unique buttons, "A", "B", "C"...and based on the users click, it performs an action? If so, how would I create this?
View 2 Replies
View Related
Jun 17, 2009
Just curious as to what could make a custom menu or custom button disappear from Excel upon opening it. I had created a custom menu with personal.xls macros in it for someone here a while back, and today it was completely missing.. although the Personal.xls folder still existed with the macros.
I am quite sure that they did not manually remove the menu by right-clicking and selecting Customize and dragging back the menu items...
View 5 Replies
View Related
Aug 22, 2006
I have created a nice custom menu but I only want to tie it to only appear when I open a specific template file or any other saved work book from the template file.
View 5 Replies
View Related
May 13, 2006
Have a spreadsheet wherein I have added some custom controls to the right-click function of the mouse. The buttons and their associated code runs great for all but one user in my office. For that user, the custom buttons do not even appear on his right-click menu. I have looked through his settings to make sure that his security settings are the same as everyone else that uses the spreadsheet, and they are. All of the other modules in the spreadsheet work fine.
Is there some other setting that would control the display of his right-click buttons. Perhaps a windows security setting that I am missing?
The following is a snippet of the code that adds one of the right-click buttons for example. This code is stored in the 'Workbook_SheetBeforeRightClick' event.
With Application. CommandBars(" cell").Controls _
.Add(Type:=msoControlButton, Before:=1, temporary:=True)
.Caption = "Create Panel Hyperlink"
.OnAction = "CreateHyperlink"
.Tag = "brccm"
.FaceId = 2169
End With
View 3 Replies
View Related
Jan 15, 2007
I have created a custom Command Bar called "My New Bar"
How can I step through each button in that bar to read the assigned macro names or the Caption names
View 9 Replies
View Related
Nov 29, 2007
I have a workbook with 3 spreadsheets. When I put ptotection on 2 of the sheets, the custom view will not work on the other. Any way to make the views work?
View 5 Replies
View Related
Dec 26, 2010
I made custom menu with these instructions: [URL]....
Problem is that when I right click my makro keeps copying itself. Ten times right click=ten my macro in the right click menu. It means that
Private Sub Workbook_Deactivate() doesn't work as it should be?
View 2 Replies
View Related
Feb 15, 2010
I have created an Addin from one I found on this site which creates a menu on the CommandBar. On this menu I can add my Macros. The Menu is initially supposed to perform a delete function then an add, just in case the menu already exists on the CommandBar. It is also supposed to Uninstall the menu when you de-select the Addin. At the moment it doesn't seem to be doing either, as I have now got 5 CommandBar menu's all the same and I can't delete them?
This also creates a problem of when I add another macro, the menu on the CommandBar doesn't update with the addition?
I have attached the .xla file for you to look at and see where I'm going wrong.
VBA Macros & Creating An Add-in For Them
View 5 Replies
View Related
May 12, 2006
I'm trying to load a custom menu in a workbook to avoid having users to load an add in to use the spreadsheet. I'm trying to add this to the "this workbook" tab but I've never done this.
View 3 Replies
View Related
Jun 2, 2006
I have create a custom menu and want to add a choice and a subchoice that will guide the user to insert a number in an inputbox or under a list. Then the user's selected number it will be used as parameter for a vba code.
Eg.:
The choice is: How many rows will be marked
The subchoice : 10 (default value)
What i want is the following:
If the user choose the above subchoice then it has to be appeared an inputbox or something like that in which he has to insert a number, eg. 45. After that the choice must shows
The choice: How many rows will be marked
The subchoice: 45
This parameter must be active all the time that the user uses the workbook. At the end, if the user saves the workbook, the next time it will be opened, the subchoice must have the value 45.
Look at the attachment image to see exactly what i want
Here's the code. Just copy it under a module
Option Explicit
Dim cbMenu As CommandBarControl
Dim cbSubMenu As CommandBarControl
Public MenuSeries
View 9 Replies
View Related
Oct 26, 2006
I was making a custom Menu Bar in excel. In order to troubleshoot I executed the code a no. of times, resulting in multiple but same menu bars in excel application. Now the problem is that even if I quit excel, the menu bars dont seem to go..How do I get rid of them.
View 2 Replies
View Related
Apr 5, 2007
I am working on a workbook that has a custom worksheet menu bar item created every time the file opens. If I try to edit the path of these macros and save the file, when i reopen the file, it is back to the original paths. I can't find any VB code, hidden worksheets, hidden cells,etc to find the source of this item being created. I have even deleted all VB modules and worksheets except a blank sheet and it still creates the item. Somewhere this menu bar item is being created and I have no idea where. It acts the same on 4 different machines and acts the same on Excel 97, 2000, 2003 and 2007.
View 4 Replies
View Related
Nov 30, 2007
I have downloaded a custom menu workbook attached. I am wanting to only show the custom menu in one workbook as it appears in all workbooks open at the time.
View 3 Replies
View Related
Mar 4, 2008
how to manage a custom faceid. Though, I am not too sure as to how to assign an actual icon to a custom toolbar. I can try the pasteface method; though as the source file is a .png; the picture might be too small.
View 2 Replies
View Related
Apr 12, 2008
Trying to write a VBA code to add a new menu item with submenus on the Standard toolbar when Workbook_Open and then deleting it (_Before close). Just having trouble with the creating of the menu item. Here is what I have so far:
Sub Workbook_Open()
...
Dim menuitem As CommandBarPopup
Set Menu = Application.CommandBars("Menu Item").Controls.Add (Type:=msoControlPopup, Before:=13)
...
End Sub
View 2 Replies
View Related
Feb 16, 2014
I created an add-in with custom VBA and forms, which also stores user preferences in worksheets in the addin. When the add-in loads, it creates a custom menu on the Add-Ins ribbon that allows the user to run the main macro, or to assign a shortcut key of their choosing. It also allows them to enter registration information.
In Excel 2013, the code is all accessible since the add-in still loads, but it doesn't add the custom menu allowing users to interact with the macros. I'm told this is due to the switch to SDI.
It seems that adding Workbook_Open code to a normal file allows the custom menu to be created, but adding the same code to an add-in file does not work.
View 2 Replies
View Related
Dec 2, 2008
A spreadsheet that needs a new menu item in a custom menu does not show the custom menu code. Tools-->Customize-->Commands-->Rearrange Commands shows the menu and allows me to add a new menu item and macro.
After saving and exiting excel and going back into the spreadsheet, the new menu item is gone. How can I find the code to do this to keep the menu item? In the VBE, I looked in the object browser(F2) in all of the libraries and could not find the code. In the workbook_open and workbook_activate I can disable it with CommandBars("Worksheet Menu Bar").Controls("menu").Delete and it disappears.
View 14 Replies
View Related
Apr 3, 2007
how to change the name of a Command Button that I have called "Command Button" on the Tools menu.
Also if I have this button created in my Personal workbook and I send the file to another user what should I do? Will that user be able to see this button ok?
View 4 Replies
View Related