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 / Programming / March 2008

Tip: Looking for answers? Try searching our database.

How set print area & account for cell text length?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chet - 31 Mar 2008 17:20 GMT
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_on" 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
Jim Rech - 31 Mar 2008 20:48 GMT
Capture the width of C and then do an auto fit of it.  Now you know the
total width needed to print C.  Reset C and go through D, E, etc. adding the
width of each until you get the total width you need.

Re landscape I'd guess you'll need to make an arbitrary decision based on
the width of the print area.

Signature

Jim

| Problem statement-
| I am trying to determine how to set the print area for my worksheet? I
[quoted text clipped - 31 lines]
|
| Chet
Chet - 31 Mar 2008 21:43 GMT
> Capture the width of C and then do an auto fit of it.  Now you know the
> total width needed to print C.  Reset C and go through D, E, etc. adding the
[quoted text clipped - 39 lines]
> |
> | Chet

Thanks Jim.. I think that would work...  a good idea on how to do
it...    Thanks again.. Chet

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.