LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default How set print area & account for cell text length?

Problem statement-
I am trying to determine how to set the print area for my worksheet? I
also need to determine if it should be formatted as landscape or
portrait? My problem is that some of my cells in the right-most
column have text which is wider than the actual column width is. ( See
my example below.)

Example--
cell A1=5 columnwidth =10
cell B1=1234 columnwidth = 10
cell C1= "the_fox_jumped_over" columnwidth =10
cell C2="text_here_and_it's_very_long_and_goes_on_and_o n" columnwidth
= 10.

As you see I have a combined total columnwidth of 30 so if I set print
area to A1:C1 it would likely cut off the contents of cell C2 from
being displayed on the output due to the length of the contents of C1.
(I don't want to change the columnwidths (or rowheights) but I would
want to adjust the setprintarea such that I can display all of the
cells contents of the right column.)

Question summary-
1.How do I properly set the print area to account for the width the
contents of each cell so it's not truncated after setting the print
area? (Knowing the right-most column will have cells with longer text
length than columnwidth.)

2. How to set up the page to print landscape or portrait based on the
column widths and the length of text within the right most cells?
(Since if the text in the right most column is long enough maybe the
worksheet should be landscape orientation.)

Thanks,

Chet
 
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
Cell borders do not print on one side of print area?? alan82 Excel Discussion (Misc queries) 4 May 3rd 23 07:42 PM
How set print area & account for length of text inside cells? Chet Excel Programming 0 March 28th 08 03:58 AM
Macro to hide rows with a certain cell empty then set print area and print tahrah Excel Programming 12 January 9th 07 03:47 AM
Setting print area to text BrianW Excel Programming 2 March 1st 06 02:27 AM
Active cell counting in particular print page (one sheet having different print area) ananthmca2004 Excel Worksheet Functions 1 November 24th 05 11:29 AM


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