Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Disabling Excel 2000 worksheet printing

I need to protect the worksheet from being printed out using the most
obvious printing controls. Disabling the toolbar printing icon was
easy, as was blocking the ctrl-P key combination but how to disable the
print item in the File menu??
The VB property for CommandBar.Controls which could manipulate the
submenu items is not documented.

thanks for help, Harri


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Disabling Excel 2000 worksheet printing

in excel 2003TOOLSCUSTOMISECOMMAND TAB THEN CLICK REARRAGE COMMANDS
THEN SIMPLY DELETE PRINT COMMANDS.

"Harri Lumme" wrote:

I need to protect the worksheet from being printed out using the most
obvious printing controls. Disabling the toolbar printing icon was
easy, as was blocking the ctrl-P key combination but how to disable the
print item in the File menu??
The VB property for CommandBar.Controls which could manipulate the
submenu items is not documented.

thanks for help, Harri



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default Disabling Excel 2000 worksheet printing

In the VBA editor insert a new class module into your workbook called Class1
and include the following code:-

Dim WithEvents App As Application
Private Sub Class_Initialize()
Set App = Application
End Sub
Private Sub Class_Terminate()
Set App = Nothing
End Sub
Private Sub App_WorkbookBeforePrint(ByVal Wb As Workbook, Cancel As Boolean)
Cancel = True
End Sub

Now insert a new module and include the following code:-

Dim MyClass As Class1
Public Sub Auto_Open()
Set MyClass = New Class1
End Sub
Public Sub Auto_Close()
Set MyClass = Nothing
End Sub

It cancels any attempt to print from whatever option within Excel. It
obviously doesn't stop a user doing a print screen though.


--
Alan Moseley IT Consultancy
http://www.amitc.co.uk


"Harri Lumme" wrote:

I need to protect the worksheet from being printed out using the most
obvious printing controls. Disabling the toolbar printing icon was
easy, as was blocking the ctrl-P key combination but how to disable the
print item in the File menu??
The VB property for CommandBar.Controls which could manipulate the
submenu items is not documented.

thanks for help, Harri



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
Blocking/Disabling selected worksheet DJ Ghale Excel Worksheet Functions 1 September 16th 08 01:19 AM
Printing in Excel 2000 [email protected] Excel Discussion (Misc queries) 0 August 23rd 07 03:57 PM
Excel 2000 Printing kmac Excel Discussion (Misc queries) 1 August 10th 07 09:38 PM
PRINTING PROBLEM W/EXCEL 2000 cynjor312 Excel Discussion (Misc queries) 2 August 24th 06 02:48 PM
Chart not printing on plotter Excel 2000 Chris wongman Excel Discussion (Misc queries) 0 June 14th 05 10:52 AM


All times are GMT +1. The time now is 03:27 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"