Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Jan 2003
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have a large spreadsheet. I would like to define each area that I want to print (Define-Name) and then somehow use a macro to print the area I have selected. I am unclear about whether I have to set the print area before I do the macro, or can I set the print area as part of the macro. So far my attempts are mixed and I can't figure out when set print area works (in the macro) and when it does not.

    Thank you.
    Ann Glazer

  2. #2
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Are the print areas on one sheet or multiple sheets through the workbook?
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    The Range object has a PrintOut method, so if you define a variable of type range, and set it to a single- or multi-area range, you can print it directly without setting the worksheet's print area.
    Keep in mind though that each area will start a new page.

Posting Permissions

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