+ Reply to Thread
Results 1 to 17 of 17

macro print multiple sheets

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    macro print multiple sheets

    Hi everyone.
    In the attached workbook there are 2 sheets.
    In sheet1 there is a data validation that changes the number by updating the values in sheet2
    I ask for help to do this:
    Print all sheets in one shot without selecting the number and then printing.
    The numbers in this case are 9 but can be many more.
    I hope I explained myself.
    Thanks in advance.
    max
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: macro print multiple sheets

    Do you not have the option to print the entire workbook in your print function?


    If not try something like:=

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 10-16-2018 at 03:40 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    Must do this:

    Data validation / combobox 1 in sheet1> print sheet2
    Data validation / combobox 2 in sheet1> print sheet2
    Data validation / combobox 3 in sheet1> print sheet2
    Data Validation / Combobox 4 in Sheet1> Print Sheet2
    Data Validation / Combobox 5 in Sheet1> Print Sheet2

    combobox / validation data numbers can be more than 5
    max

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: macro print multiple sheets

    Maybe

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: macro print multiple sheets

    Maybe


    I cannot post the code to select Foglio1 before running the macro. Insert that your self.

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    I tried the macro and it looks like it runs well.
    A greeting
    max

  7. #7
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    Hello
    XXXXXX
    Last edited by max_max; 10-18-2018 at 04:18 PM.

  8. #8
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    Hello
    because it does not work?

    Please Login or Register  to view this content.
    Now the imputbox is in I4 and continues to debug here:
    If Cells (count, 3) = "" Then GoTo Skip
    max

  9. #9
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: macro print multiple sheets

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    Because not work?
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: macro print multiple sheets

    You are using the Defined Name Numeri for Data Validation.

    Numerie refers to B17 to B32 on Sheet Lingua.

    So....


    Please Login or Register  to view this content.

  12. #12
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    Thanks melmetck
    We're at a good point.
    Now there is no mistake.

    A problem:
    must only print as sheet numbers only if cells
    lingua > B17: B32 are not empty

    in cell I4 (stampa marche) must reset
    Anyway thank you very much.
    max
    Last edited by max_max; 10-19-2018 at 12:42 PM.

  13. #13
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    It's a mystery now it does not work anymore
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: macro print multiple sheets

    1. Put this formula in cell B17 on lingua
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    2. Try this version

    Please Login or Register  to view this content.

  15. #15
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    Thanks mehmetcik,
    here at home it works.
    Monday I try in the office.
    Thank you so much.
    Greetings and thanks again.
    max

  16. #16
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    Hi mehmetck the macro works well.
    is a change possible?
    now if the macro part is I have many sheets to print I can not stop the macro and print all the sheets.
    is it possible at any time to stop the macro and cancel everything, maybe connected to a button
    with warning:
    do you want to stop the print?
    Yes / No
    Thanks in advance.
    max

    Please Login or Register  to view this content.
    Last edited by max_max; 11-04-2018 at 04:08 PM.

  17. #17
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro print multiple sheets

    Click: ESC

    Please Login or Register  to view this content.
    it's right?
    max

+ 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. Macro to Print multiple sheets
    By wjk221 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2014, 10:50 AM
  2. Macro to print multiple sheets
    By queenstarks in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-24-2014, 05:47 PM
  3. [SOLVED] Macro to Print Multiple Sheets to Single PDF
    By LEber in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-09-2013, 09:52 AM
  4. 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
  5. Replies: 8
    Last Post: 10-19-2010, 09:28 AM
  6. Apply Print Settings to Multiple Sheets via MACRO
    By ShaneBell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2009, 08:48 PM
  7. Macro: To print multiple sheets in a folder
    By NZMax in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-16-2009, 01:07 AM

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