Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Mar 2003
    Posts
    174
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Printing Dynamic Range (Excel 2000)

    How do I keep printing a dynamic range without doing the page setup everytime ? I put in the dynamic range name in page setup (sheet). But once I printed, the dynamic range name becomes a static range (for example, A3:B4 ...). Anyway I can keep the printing area equal to the dynamic range ?

  2. #2
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Printing Dynamic Range (Excel 2000)

    Try putting something like this into a Standard Module and attach it to a custom toolbar button:<pre>Sub PrintRangePortrait()
    With ActiveSheet.PageSetup
    .PrintArea = "DynamicRange"
    .Orientation = xlPortrait
    .PaperSize = xlPaperA4
    .Zoom = False
    .FitToPagesWide = 1 ' adjust to your own circumstances
    .FitToPagesTall = 1 ' adjust to your own circumstances
    .PrintTitleRows = ""
    .PrintTitleColumns = ""
    End With
    End Sub</pre>

    HTH
    Gre

Posting Permissions

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