Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I'm trying to disable the print CommandBar items and toolbar buttons from a specific Excel workbook on the WhenClick event of a custom button. The problem is that in so ding, I end up disabling the functionality for any workbook I open after executing my code. Any ideas on how I can limit the sciope to the individual workbook I'm working on? I'm sing Excel XP. Here's a snippet of my code: Toolbars("Standard").ToolbarButtons(7).Enabled = False With CommandBars("File") .Controls("Print...").Enabled = False .Controls("Print Preview").Enabled = False End With |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
William,
Thanks for the great suggestion! It works like a charm. Regards, Jim *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to exchange Custom Commandbar buttons between PC's? | Excel Discussion (Misc queries) | |||
saving toolbar buttons on custom toolbar | Excel Programming | |||
Toolbar Buttons | Excel Programming | |||
Disabling toolbar customization | Excel Programming | |||
Option buttons - disabling | Excel Programming |