Results 1 to 4 of 4

Thread: print options?

  1. #1

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545

    print options?

    Ok

    I figured out how to finally add page breaks. Now my question is this. The excel document that I have generated through code, is wider than an actual page. How do I specify that I want to print the entire width of the page?

    Note that i CANT do this
    VB Code:
    1. With .ActiveSheet.PageSetup
    2.     .FitToPagesWide = 1
    3.     .FitToPagesTall = totalPages
    4. End With
    because this completely overrides any page breaks that I have entered through code and completely misaligns everything.

    Is there any way to find out how much you would need adjust the size of the print area similar to that of the print option "Adjust to __ % of actual size" so that everything fits 1 page wide by however many pages long.

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    try setting both to 0
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    uh what would that do????

    ANyways that generates an error

    What I meant by saying I cant do that is that those lines can't be in there at all. But if i take those lines out I get double the pages I want because some of the worksheet gets cut off on the right.

  4. #4

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    I guess I can explain what i need more clearly....

    I know for example that in most cases if I add this line everything works fine
    VB Code:
    1. .Zoom 70 'Which zooms to 70% of the screen size
    But, in some cases the page will be slightly wider than this. How can I be certain that 70% will display it all?

    I need some way to determine which zoom value will display the entire width of the print area.

    This does not sound easy does it :-)

    Thanx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width