PC Review


Reply
Thread Tools Rate Thread

block printing of defined tabs

 
 
joemeshuggah
Guest
Posts: n/a
 
      12th Nov 2008
is it possible to program excel to prevent printing of specified tabs? i
have users that are too lazy to select the tab they want to print and are
printing tabs that have source data for pivot tables and wind up printing
pages upon pages that they don't need.
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      12th Nov 2008
Use this in a workBOOK module

Private Sub Workbook_BeforePrint(Cancel As Boolean)
If ActiveSheet.Name <> "Sheet1" Then
MsgBox "You may print only Sheet1"
Cancel = True
End If
End Sub

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"joemeshuggah" <(E-Mail Removed)> wrote in message
news:9005BE3B-85BB-4B14-B2DE-(E-Mail Removed)...
> is it possible to program excel to prevent printing of specified tabs? i
> have users that are too lazy to select the tab they want to print and are
> printing tabs that have source data for pivot tables and wind up printing
> pages upon pages that they don't need.



 
Reply With Quote
 
joemeshuggah
Guest
Posts: n/a
 
      12th Nov 2008
thanks...the block only appears to work if the user selects one of the tabs
that should not be printed. i believe the user is either selecting all tabs
or choosing "entire workbook" from the print menu...in which case all pages
print (even with the code below). is there an alternative to below that
would strictly allow a print of only sheets that i specifiy in the code?

"Bernard Liengme" wrote:

> Use this in a workBOOK module
>
> Private Sub Workbook_BeforePrint(Cancel As Boolean)
> If ActiveSheet.Name <> "Sheet1" Then
> MsgBox "You may print only Sheet1"
> Cancel = True
> End If
> End Sub
>
> --
> Bernard V Liengme
> Microsoft Excel MVP
> http://people.stfx.ca/bliengme
> remove caps from email
>
> "joemeshuggah" <(E-Mail Removed)> wrote in message
> news:9005BE3B-85BB-4B14-B2DE-(E-Mail Removed)...
> > is it possible to program excel to prevent printing of specified tabs? i
> > have users that are too lazy to select the tab they want to print and are
> > printing tabs that have source data for pivot tables and wind up printing
> > pages upon pages that they don't need.

>
>
>

 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      13th Nov 2008
Played with this for a while with no luck
Some suggestions:
1) put a control on the OK-to-Print sheet(s) and train user to use this for
printing
2) hide the large worksheet, hidden worksheets do not print (check this!)
3) on the large worksheet, set the print area to a few cells in row 1. The
you will not waste time & paper. If you want to be wicked: in some unused
area of the large worksheet enter some text "Why the devil did you print
this!" and set the Print Area to that cell. This is called 'training' <grin>
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"joemeshuggah" <(E-Mail Removed)> wrote in message
news:5AC3F7DE-3DEB-4D3C-9E0F-(E-Mail Removed)...
> thanks...the block only appears to work if the user selects one of the
> tabs
> that should not be printed. i believe the user is either selecting all
> tabs
> or choosing "entire workbook" from the print menu...in which case all
> pages
> print (even with the code below). is there an alternative to below that
> would strictly allow a print of only sheets that i specifiy in the code?
>
> "Bernard Liengme" wrote:
>
>> Use this in a workBOOK module
>>
>> Private Sub Workbook_BeforePrint(Cancel As Boolean)
>> If ActiveSheet.Name <> "Sheet1" Then
>> MsgBox "You may print only Sheet1"
>> Cancel = True
>> End If
>> End Sub
>>
>> --
>> Bernard V Liengme
>> Microsoft Excel MVP
>> http://people.stfx.ca/bliengme
>> remove caps from email
>>
>> "joemeshuggah" <(E-Mail Removed)> wrote in message
>> news:9005BE3B-85BB-4B14-B2DE-(E-Mail Removed)...
>> > is it possible to program excel to prevent printing of specified tabs?
>> > i
>> > have users that are too lazy to select the tab they want to print and
>> > are
>> > printing tabs that have source data for pivot tables and wind up
>> > printing
>> > pages upon pages that they don't need.

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summing user defined ranges from other tabs within the same workbook Colin Brodie Microsoft Excel Worksheet Functions 0 30th Jan 2008 08:39 AM
block of copy gets deleted when using tabs =?Utf-8?B?cGFwYWJlYXI=?= Microsoft Word Document Management 3 17th Apr 2007 08:58 PM
how are these defined in AD printing? Tere01 Microsoft Windows 2000 Printing 0 1st Jun 2005 05:44 PM
features to change: put tabs instead of link on block events Spyware Discussion 1 26th Jan 2005 05:13 PM
"Application-defined or object-defined error" while printing excel report chemburkar Microsoft Excel Programming 0 2nd Feb 2004 08:33 PM


Features
 

Advertising
 

Newsgroups
 


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