#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Code to Print Pages

I have a very large excel workbook and each one of the sheets needs
to
be set to have 5 pages. However, there is often times where some of
the sheets do not have text printed on each one of the 5 pages so
when
I print the workbook only the header prints on the blank pages. Does
anyone know of a visual basic program I could use to print the
workbook but only the pages that have text on them?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Code to Print Pages

Rather than reposting the somewhat ambiguous question,
please post the parameters of what you need in a macro.

What does being set to 5 pages mean, does everything
fit on the width of a page. What constitutes no data
considering that you would have header rows and columns.
What about page numbering when printing all those worksheets
selectively.

If you really don't have the data that Excel thinks you
have, perhaps you have a last cell problem check
Ctrl+End to see if that is beyond the intersection of
your last used row and column. If it is then see
Why do my scrollbars go to row 500 -- my data ends in cell E50?, contextures.com, Debra Dalgleish.
http://www.contextures.com/xlfaqApp.html#Unused
and use the macro don't bother with manual removal.
If you have merged cells then you could lose formatting
on the right sides of worksheets since merged cells
only address the upper left cell of the merged cells.
--

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

wrote in message oups.com...
I have a very large excel workbook and each one of the sheets needs
to
be set to have 5 pages. However, there is often times where some of
the sheets do not have text printed on each one of the 5 pages so
when
I print the workbook only the header prints on the blank pages. Does
anyone know of a visual basic program I could use to print the
workbook but only the pages that have text on them?



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
Print Area ranges print on separate pages? Lyndon Excel Discussion (Misc queries) 1 December 29th 06 05:22 PM
need a print macro to print only a certain number of pages Tonso Excel Discussion (Misc queries) 2 July 26th 06 06:03 PM
How to print odd pages and even pages seperately in Excel. DILNAVAS Excel Discussion (Misc queries) 1 June 14th 06 11:45 AM
I need to print only odd pages & then even pages Wink Excel Discussion (Misc queries) 1 May 27th 06 03:22 PM
Too many pages to print off danc Excel Discussion (Misc queries) 2 March 15th 06 08:10 AM


All times are GMT +1. The time now is 07:30 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"