+ Reply to Thread
Results 1 to 7 of 7

Print multiple sheets multiple times

  1. #1
    Registered User
    Join Date
    04-18-2017
    Location
    NW,UK
    MS-Off Ver
    MS Office 2013
    Posts
    89

    Print multiple sheets multiple times

    Hello All

    I would like code that will print multiple worksheets ( sheets A,B,C,D ) using the cell value in cell A1 from a worksheet called "dashboard" in the same workbook

    thank you in advance

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Print multiple sheets multiple times

    Hi muss1210,

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    04-18-2017
    Location
    NW,UK
    MS-Off Ver
    MS Office 2013
    Posts
    89

    Re: Print multiple sheets multiple times

    Hello Robert

    Thanks for replying

    The warning message works fine but I get a error on the below line, the error message is Runtime error '9' , subscript out of range

    Please Login or Register  to view this content.
    thanks

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Print multiple sheets multiple times

    but I get a error on the below line, the error message is Runtime error '9' , subscript out of range
    That means there's a sheet that the code is trying to refer to that doesn't exist in the workbook. The code needs five tabs exactly named as follows to work:

    dashboard
    A
    B
    C
    D

    At a guess I'd say it's one or more of the four array items (i.e. A, B, C, D) that don't have a corresponding tab in the workbook. Make sure to have the relevant tab names you want to print exactly as they appear in the workbook in the array and try again.

    Robert

  5. #5
    Registered User
    Join Date
    04-18-2017
    Location
    NW,UK
    MS-Off Ver
    MS Office 2013
    Posts
    89

    Re: Print multiple sheets multiple times

    Ahhh all sorted, on my worksheet I had miss spelled a tabs name. now works great.

    Many thanks

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Print multiple sheets multiple times

    That's great. Thanks for the rep

  7. #7
    Registered User
    Join Date
    04-18-2017
    Location
    NW,UK
    MS-Off Ver
    MS Office 2013
    Posts
    89

    Re: Print multiple sheets multiple times

    Hello Trebor

    As always I have now been asked if the sheets can be printed in order multiple times , eg ABCD ABCD ABCD rather than AAA BBB CCC DDD

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. print a range to pdf multiple times
    By ENEMALI in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-29-2016, 08:36 PM
  2. VBA for multiple countdowns, print times, then exit without saving
    By kennethbass in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2015, 02:32 PM
  3. Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sheets
    By davidbriansmith in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2011, 12:31 PM
  4. Macro to Loop Print 1 Template multiple times
    By run2win17 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2011, 03:29 PM
  5. MACRO to print multiple sheets to multiple PDF's with different names
    By bruwer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-15-2010, 07:03 AM
  6. Print multiple selections on multiple sheets
    By jbl25 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2009, 07:46 PM
  7. Print a certificate multiple times with different data
    By scoreed in forum Excel General
    Replies: 4
    Last Post: 09-15-2007, 08:48 PM

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