Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Prevent Single Worksheet from Printing

I need to be able to print all worksheets in an excel spread sheet
except for one. Can this be achieved programatically?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Prevent Single Worksheet from Printing

something like

sub printallbutone()
for each ws in worksheets
if ws.name<"Dontprintthisone" then ws.printout
next ws
end sub


--
Don Guillett
SalesAid Software

"Epoh Rio" wrote in message
ups.com...
I need to be able to print all worksheets in an excel spread sheet
except for one. Can this be achieved programatically?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Prevent Single Worksheet from Printing

Thanks for the quick reply. Where do insert this code? This workbook?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Prevent Single Worksheet from Printing


That's OK. But, probably best in a regular module.
Just make sure you get the name of the worksheet right
"Sheet2" is NOT the same as "sheet2"
--
Don Guillett
SalesAid Software

"Epoh Rio" wrote in message
ups.com...
Thanks for the quick reply. Where do insert this code? This workbook?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Prevent Single Worksheet from Printing

Thanks I will give it a try

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
Printing Single Worksheet Multiple Times with Different Data Jr. New Users to Excel 6 October 16th 07 05:53 PM
Print correct Page X of Y when printing single worksheet dbarrett44 Excel Discussion (Misc queries) 3 April 14th 06 03:34 AM
Prevent printing of some sheets and not others in a single doc? kblake Excel Programming 2 September 23rd 05 11:38 AM
VBA or MACRO to prevent someone from printing the contents of an Excel worksheet Marcello do Guzman Excel Programming 3 November 13th 03 06:28 PM
MACRO OR VBA CODE TO PREVENT USERS FROM PRINTING THE CONTENTS OF A WORKSHEET? Marcello do Guzman Excel Programming 1 November 8th 03 12:34 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"