Consulting

Results 1 to 3 of 3

Thread: Solved: Print ranges in workheets

  1. #1

    Solved: Print ranges in workheets

    Hi
    I need to print out all of the worksheets in a active workbook,but only the ranges ex ("M1:R8")

    Is there someone out there who knows anyting about this please help me
    Thanks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Sub PrintAll()
    Dim sh As Worksheet

    For Each sh In ActiveWorkbook.Worksheets

    sh.PageSetup.PrintArea = "$M$1:$R$8"
    sh.PrintOut
    Next sh
    End Sub
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3

    Solved:Print ranges in workheets

    Quote Originally Posted by u25103
    Hi
    I need to print out all of the worksheets in a active workbook,but only the ranges ex ("M1:R8")

    Is there someone out there who knows anyting about this please help me
    Thanks

Posting Permissions

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