LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default Disable print not working

Dave

Dave Peterson wrote:
Did you put that code in the ThisWorkbook module? Yes.

Did you enable macros when you opened the workbook? Yes

Did you ever disable events and not enable them later? I tried this code in a workbook with no other code and it still failed to run. If I figure it out I will post back.


Thanks.

Alan


wrote:

I am trying to disable printing via the menu or tool bar and I see this
response in a number of other posts. However it is not working for me.
Any thoughts? Thanks.

Alan

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Cancel = True
End Sub


--

Dave Peterson


 
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
disable print Alberto Ast[_2_] Excel Discussion (Misc queries) 11 January 20th 10 07:06 PM
Disable Excel Print Scott R Excel Worksheet Functions 6 January 21st 08 12:59 AM
disable print Walter P Excel Discussion (Misc queries) 6 July 20th 06 08:12 PM
Shift key to disable macros not working David P. Excel Discussion (Misc queries) 5 November 14th 05 07:52 PM
Hide or disable print Gareth[_3_] Excel Programming 1 February 14th 04 12:05 PM


All times are GMT +1. The time now is 04:36 PM.

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"