Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Preventing Users from Modifying Custom Command Bars

The article "Preventing Users from Modifying Custom Command Bars" in the MSDN Library suggests there are only three ways to access the Customize dialog box, and provides two lines of VBA code that blocks access to this dialog box

However, there is a fourth way to access the Customize dialog box. At the end of a toolbar (at least in Excel XP) there is a narrow button with only an arrow on it, called Toolbar Options I think. This button is present even on the custom toolbars I created! When I click this button, under the Add or Remove Buttons popup menu, the Customize... command is available, and it brings up the Customize dialog box even after I have run the two lines of code provided in the MSDN article. I've tried to write all sorts of code, but cannot disable the Tollbar Options button. Do you know how to do this using VBA code? Or, alternatively how to block users from modifying custom tollbars using this fourth way

Thanks for helping.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 320
Default Preventing Users from Modifying Custom Command Bars

commandbars("Toolbar list").Enabled=False

Even tho the arrow will still be there, it no longer works!

reset via commandbars("Toolbar list").Enabled=True

Bob Umlas
Excel MVP

"Vlad" wrote in message
...
The article "Preventing Users from Modifying Custom Command Bars" in the

MSDN Library suggests there are only three ways to access the Customize
dialog box, and provides two lines of VBA code that blocks access to this
dialog box.

However, there is a fourth way to access the Customize dialog box. At the

end of a toolbar (at least in Excel XP) there is a narrow button with only
an arrow on it, called Toolbar Options I think. This button is present even
on the custom toolbars I created! When I click this button, under the Add or
Remove Buttons popup menu, the Customize... command is available, and it
brings up the Customize dialog box even after I have run the two lines of
code provided in the MSDN article. I've tried to write all sorts of code,
but cannot disable the Tollbar Options button. Do you know how to do this
using VBA code? Or, alternatively how to block users from modifying custom
tollbars using this fourth way?

Thanks for helping.



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
Custom Command Bars barrowhill Excel Discussion (Misc queries) 1 March 29th 08 02:19 PM
Prohibit users from modifying Cath Excel Discussion (Misc queries) 2 July 21st 06 03:42 PM
Preventing users from unsharing a workbook Cillian Excel Discussion (Misc queries) 0 December 1st 05 05:35 PM
Preventing users from saving a spreadsheet MDH Excel Discussion (Misc queries) 4 July 6th 05 09:46 PM
Preventing users from deleting worksheets Alice[_3_] Excel Programming 2 November 13th 03 07:38 PM


All times are GMT +1. The time now is 06:29 AM.

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

About Us

"It's about Microsoft Excel"