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: 46
Default Print problem

Hello - I thought I posted this question earlier today, but now I
cannot find it. My problem concerns formatting a page to print.

The page has multiple columns, and it is not possible to know how wide
the columns will be in advance - that is to say, each time the program
is used, the column widths are set automatically to agree with the
width of the data.

Then the result is printed. If there are more than a pre-defined
number of columns, the macro does a special format for page two, and
the printing appears on two pages for clarity

I would like to use the entire sheet of paper on each page so the
print is as large as practical. I wrote a macro to reformat the pages
for 2 sheets under certain conditions, and it works fine. However, I
cannot figure out how to use the 'fit to page' option. I would like
to have it in the macro so that the printout will expand as much as
practical to fill each of the two pages.

However, whenever I add the 'fit to page' statement to the program,
the page break disappears and does not function, 'even if I am
specifying print to 2 pages.' Here is part of the code;

ActiveSheet.PageSetup.PrintArea = "$D$2:$CC$246"
With ActiveSheet.PageSetup
.Zoom = False
.FitToPagesWide = 2
.FitToPagesTall = 1

Forgive me if I have double posted, but I do need some help.

 
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 Problem Loretta Excel Discussion (Misc queries) 4 January 10th 07 11:35 PM
Print problem RJH Excel Programming 3 June 5th 05 03:21 AM
Print problem Alvin Hansen[_2_] Excel Programming 1 September 22nd 04 01:48 PM
Print problem Terrance Rebello Excel Programming 0 September 21st 04 10:47 PM
Print problem Alvin Hansen[_2_] Excel Programming 0 September 21st 04 08:23 PM


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