Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Toolbars & command disabled

I found the following code that works great for me in that it disables right
click and all toolbars for the workbook on startup. Is there any way to
enable only certain right click functions. I have radio buttons that a user
will click on and I would like to keep "clear contents" available only.

Sub Commands()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False

Next oCB
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Toolbars & command disabled

Any takers on this one? It would be a good alternative for me since I can't
seem to find a solution to reseting a radio button by just clicking.

"dgold82" wrote:

I found the following code that works great for me in that it disables right
click and all toolbars for the workbook on startup. Is there any way to
enable only certain right click functions. I have radio buttons that a user
will click on and I would like to keep "clear contents" available only.

Sub Commands()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False

Next oCB
End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toolbars and Command Language ramsmig Excel Discussion (Misc queries) 2 January 26th 09 04:52 PM
Unable to use right-click on cells; standard and formatting toolbars disabled Trizi Excel Discussion (Misc queries) 3 June 22nd 07 04:17 AM
VBA IDE Menus and Toolbars are all disabled [email protected] Excel Programming 1 March 20th 06 09:46 PM
Why are my auditing and forms toolbars disabled? plb Excel Discussion (Misc queries) 0 September 23rd 05 03:41 PM
Preventing shortcut keys from working on disabled toolbars Bob Holmes Excel Programming 2 April 14th 04 01:40 PM


All times are GMT +1. The time now is 03:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"