+ Reply to Thread
Results 1 to 5 of 5

Thread: Print Page 1 of all sheets in workbook

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    lincoln
    MS-Off Ver
    Excel 2003
    Posts
    8

    Print Page 1 of all sheets in workbook

    Hi,

    Im a novice with excel but seem to be getting by just, ive come a little stuck and was wondering if anyone knows how to write a macro in excel that will print page 1 of each sheet in the workbook?

    Many Thanks

    Rob
    Last edited by rob-bob; 01-14-2012 at 01:48 PM.

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Print Page 1 of all sheets in workbook

    Sub PrintMacro()
    Dim ws As Worksheet
        For Each ws In ActiveWorkbook.Worksheets
            ws.PrintOut From:=1, To:=1, Copies:=1
        Next ws
    End Sub
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-10-2012
    Location
    lincoln
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Print Page 1 of all sheets in workbook

    Thanks verymuch JBeaucaire this works great!!!!

    Cheers

    Rob

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Print Page 1 of all sheets in workbook

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    01-10-2012
    Location
    lincoln
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Print Page 1 of all sheets in workbook

    Done Thanks

+ 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