+ Reply to Thread
Results 1 to 3 of 3

Thread: VBA - Loop a Function

  1. #1
    halper@lgblp.com
    Guest

    VBA - Loop a Function

    I have the current function:

    Sub Printing()
    Sheets(ActiveSheet.Index + 1).Activate
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
    End Sub

    I then want the formula to restart itself on teh current sheet and then
    move the next sheet and print the data and so and so on (I have 300
    sheets that need to be printed individually to maintain the correct
    page numbering).

    Thanks for the help.

    Scott


  2. #2
    Tom Ogilvy
    Guest

    RE: VBA - Loop a Function

    Sub Printing()
    for i = 1 to 300
    Sheets(i).Activate
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
    Next i
    End Sub

    --
    Regards,
    Tom Ogilvy



    "halper@lgblp.com" wrote:

    > I have the current function:
    >
    > Sub Printing()
    > Sheets(ActiveSheet.Index + 1).Activate
    > ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
    > End Sub
    >
    > I then want the formula to restart itself on teh current sheet and then
    > move the next sheet and print the data and so and so on (I have 300
    > sheets that need to be printed individually to maintain the correct
    > page numbering).
    >
    > Thanks for the help.
    >
    > Scott
    >
    >


  3. #3
    halper@lgblp.com
    Guest

    Re: VBA - Loop a Function

    Thanks Tom.


+ 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.2.0