|
-
Oct 1st, 2010, 09:24 AM
#1
Thread Starter
New Member
[Excel] Need to print pages only with text
I have a problem that is frustrating me, because I don't think it is as hard as I'm making it out to be.
I have a spreadsheet with a set print area of 17 pages. However, there won't always be 17 pages worth of information. There may only be, say, 7 pages to print this quarter, or 10 next quarter. Is there a way I can set up a macro to print only the pages with text?
Also, I need to do this over multiple worksheets.
Any insight is much appreciated! Thank you!
-
Oct 1st, 2010, 03:08 PM
#2
Hyperactive Member
Re: [Excel] Need to print pages only with text
Is there a reason you have the print area set? I would think you would use this if you DID want to print the whole area. Without knowing how your spreadsheets are set up, its difficult to answer this.
-
Oct 1st, 2010, 04:07 PM
#3
Re: [Excel] Need to print pages only with text
you could try like
Sheets("sheet1").UsedRange.PrintOut
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Oct 1st, 2010, 05:09 PM
#4
Re: [Excel] Need to print pages only with text
Instead of using Sheets("sheet1").UsedRange.PrintOut, just remove PrintArea (leave it blank).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|