Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default How do I ensure that all the data is on one page when printing in.

I have a worksheet that is comprised of tables.
I need to ensure thta tables do not overlap the end of the page. How do I do
this in a macro?

THe page length seems to be set by the paper size but I can't make
alterations stick! The pagebreak keeps interferring!

thanks in anticipation.

Allan Thompson
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default How do I ensure that all the data is on one page when printing in.

Have you experimented with the print dialog section where you can select
Print to Fit?

"Allan" wrote:

I have a worksheet that is comprised of tables.
I need to ensure thta tables do not overlap the end of the page. How do I do
this in a macro?

THe page length seems to be set by the paper size but I can't make
alterations stick! The pagebreak keeps interferring!

thanks in anticipation.

Allan Thompson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default How do I ensure that all the data is on one page when printing

'fraid that won't work - because the table needs to be a particluar size when
printed .

I size the table to fit the width of page - but my problem is keeping a
whole tabvle together. There are a maximum of 15 tables to print.

thanks for replying.

Allan
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default How do I ensure that all the data is on one page when printing


What I have done is
1. Set each table on a separate worksheet.
2. Set the print area for each sheet to the same size as the table.
3. Do the print setup to Fit to one page high and one page wide.
4. Center the table in the print set-up.

If your tables are dynamic (you add/delete records), then the above can be
done with code in a Worksheet_Change event.

"Allan" wrote:

'fraid that won't work - because the table needs to be a particluar size when
printed .

I size the table to fit the width of page - but my problem is keeping a
whole tabvle together. There are a maximum of 15 tables to print.

thanks for replying.

Allan

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default How do I ensure that all the data is on one page when printing

An option to "Fit to Page" is to adjust the percentage size (also in the same
section of the Print Setup. This will allow you get at least the height or
width to the size you want. From there you may need to adjust the column
width and/or row height in the wsh as well.

"Allan" wrote:

'fraid that won't work - because the table needs to be a particluar size when
printed .

I size the table to fit the width of page - but my problem is keeping a
whole tabvle together. There are a maximum of 15 tables to print.

thanks for replying.

Allan



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
Excel Printing --Borders are not printing on the same page as data Stup88 Excel Discussion (Misc queries) 1 August 7th 07 09:34 AM
can I ensure a drop down list is used i.e by preventing printing Have a Go Excel Discussion (Misc queries) 1 December 15th 06 04:27 AM
Can adjust Format Rows Autofit to ensure WYSIWYG when printing GraySmithy Excel Worksheet Functions 2 September 3rd 05 03:37 PM
Can one adjust Format Row Autofit to ensure WYSIWYG when printing GraySmithy Excel Discussion (Misc queries) 2 September 2nd 05 02:26 PM
Printing second page if data overruns, otherwise print first page playdohstu Excel Programming 1 February 12th 04 02:08 PM


All times are GMT +1. The time now is 01:12 AM.

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"