Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Printing / March 2004

Tip: Looking for answers? Try searching our database.

Set Print Area

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Klenner - 29 Mar 2004 04:10 GMT
To make my need as easy to explian as possible , I'm simplifing as much as
possible:

I have a worksheet with a rows with 4 columns  (these are options that we
add to a quote and entered manually based on quote needs.
Qty              PN             Desc             Price

There can be any where from 2 parts to 300 Parts. I set the print area to
accomadate the 300 max parts. If I only have 15 parts excel wants to print
the pages for the area from 16 to 300.  Is there a way to only print the
pages that have valid entry's

I've tried not setting a print area but I have other entries in worksheet
that Excel wants to print.

I know this seems unclear...just having hard time explaining my needs.

Steve
William - 29 Mar 2004 05:35 GMT
Steve

If you do not mind using a macro, place this code in the "ThisWorkbook"
module.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet
.PageSetup.PrintArea = .Range(.Range("A1"), _
.Range("A" & Rows.Count).End(xlUp).Offset(0, 3)).Address
End With
End Sub

Signature

XL2002
Regards

William

willwest22@yahoo.com

| To make my need as easy to explian as possible , I'm simplifing as much as
| possible:
[quoted text clipped - 14 lines]
|
| Steve

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.