+ Reply to Thread
Results 1 to 2 of 2

Printing Multiple Sheets

  1. #1
    Registered User
    Join Date
    08-10-2006
    Posts
    7

    Printing Multiple Sheets

    How do I get this macro to print more the on sheet For example sheets 1 to 5.

    Sub doprint()
    '
    ' doprint Macro
    ' Macro recorded 9/25/2003 by AvilaJ

    Dim i As Integer
    Dim oCell As Range


    Jummber1 = InputBox("Start in Job Number?", " First Job to Print", 0)
    Jummber2 = InputBox("Finish in Job Number?", " Last Job to Print", 0)

    Range("I40").Select
    ActiveCell.FormulaR1C1 = Jummber1
    Range("I41").Select
    ActiveCell.FormulaR1C1 = Jummber2

    For Counter = Jummber1 To Jummber1
    Range("L5").Select
    ActiveCell.FormulaR1C1 = Counter
    ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1, Collate _
    :=True
    Next Counter

    End Sub

  2. #2
    Tom Ogilvy
    Guest

    Re: Printing Multiple Sheets

    'For Counter = Jummber1 To Jummber1
    For Counter = Jummber1 to Jummber2
    sheets(Counter).Activate
    Range("L5").Select
    ActiveCell.FormulaR1C1 = Counter
    ActiveWindow.SelectedSheets.PrintOut _
    From:=1, To:=1, Copies:=1, Collate:=True
    Next Counter

    --
    Regards,
    Tom Ogilvy

    "Razzcul" <[email protected]> wrote in
    message news:[email protected]...
    >
    > How do I get this macro to print more the on sheet For example sheets 1
    > to 5.
    >
    > Sub doprint()
    > '
    > ' doprint Macro
    > ' Macro recorded 9/25/2003 by AvilaJ
    >
    > Dim i As Integer
    > Dim oCell As Range
    >
    >
    > Jummber1 = InputBox("Start in Job Number?", " First Job to Print",
    > 0)
    > Jummber2 = InputBox("Finish in Job Number?", " Last Job to Print",
    > 0)
    >
    > Range("I40").Select
    > ActiveCell.FormulaR1C1 = Jummber1
    > Range("I41").Select
    > ActiveCell.FormulaR1C1 = Jummber2
    >
    > For Counter = Jummber1 To Jummber1
    > Range("L5").Select
    > ActiveCell.FormulaR1C1 = Counter
    > ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1,
    > Collate _
    > :=True
    > Next Counter
    >
    > End Sub
    >
    >
    > --
    > Razzcul
    > ------------------------------------------------------------------------
    > Razzcul's Profile:
    > http://www.excelforum.com/member.php...o&userid=37365
    > View this thread: http://www.excelforum.com/showthread...hreadid=573489
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1