ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disable print from standard toolbar button (https://www.excelbanter.com/excel-programming/443018-disable-print-standard-toolbar-button.html)

mooresk257

Disable print from standard toolbar button
 
Hi Folks,

I have a workbook where I want users to be able to print only from the print
controls I have on the worksheets. I have disabled all the print controls
using:

Private Sub Workbook_Activate()
Dim Ctrl As Office.CommandBarControl
For Each Ctrl In Application.CommandBars.FindControls(ID:=4) 'print
Ctrl.Enabled = False
Next Ctrl
End Sub

However, the print button on the standard toolbar is still active. How do I
disable this too?

Thanks,

Scott


All times are GMT +1. The time now is 09:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com