+ Reply to Thread
Results 1 to 8 of 8

creating a macro to print all sheets on dropdown list

  1. #1
    Registered User
    Join Date
    04-04-2016
    Location
    iowa
    MS-Off Ver
    2013
    Posts
    5

    creating a macro to print all sheets on dropdown list

    I am doing this for a sports team. trying to speed up the printing process. normally if I have to print a specific sheet of workouts. lets say sheet 2, I have to go back to sheet 1 click on the dropdown list choose a new athlete then go back to sheet 2 and print. when teams get really big this takes awhile

    I am trying to create a Macro that allows me to print sheet 2 but also prints it for every athlete on the drop down list.

    can anyone guide me on how to do this if it is possible.

    I have seen similar macros on here but haven't been able to change the code to work for my data
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: creating a macro to print all sheets on dropdown list

    Hi,

    Here you go. I have tried to explain each step.
    You can set it to run when you press print by setting the following code in ThisWorkbook in VBA
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Let me know if you need any more help.
    Last edited by spitfireblue; 04-04-2016 at 07:44 PM.

  3. #3
    Registered User
    Join Date
    04-04-2016
    Location
    iowa
    MS-Off Ver
    2013
    Posts
    5

    Re: creating a macro to print all sheets on dropdown list

    This is great and i'm trying to figure it out, but code isn't really something i'm good at so some of it i'm lost on.

    can you show me what it should end up looking like?

  4. #4
    Registered User
    Join Date
    04-04-2016
    Location
    iowa
    MS-Off Ver
    2013
    Posts
    5

    Re: creating a macro to print all sheets on dropdown list

    Okay so I did get it going. The only problem is once I run it, all of the cells with data and equations in them become [#N/A] and it prints that way. all of the equations and data are the same but that is what I get instead of values. and I can't get those cells to go back to being values

  5. #5
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: creating a macro to print all sheets on dropdown list

    Maybe double check that the link to 2016 DUP.xlsx is still working correctly and that your formula's are correct.
    The code is pulling each athlete from Sheets("Data").Range("A2:A21") so you will need to replace each row in column A with the athlete's name that the formula is looking up in 2016 DUP.xlsx

  6. #6
    Registered User
    Join Date
    04-04-2016
    Location
    iowa
    MS-Off Ver
    2013
    Posts
    5

    Re: creating a macro to print all sheets on dropdown list

    Okay yes that was on my end I fixed it and it works great, thank you for helping me out with this.
    one last question if I save the program will the Macro also save and always be there to use? Or is there a way to permanently save a Macro so I can use in on any excel file I pull up?

  7. #7
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: creating a macro to print all sheets on dropdown list

    It will only save to the file that it is in.
    If you want it to be available for other workbooks setup the macro in a blank sheet and save it as a .xlam file in C:\Users\(Your User Name)\AppData\Roaming\Microsoft\AddIns\
    Then in Excel Options under Addins, select "Go" and find the Addin that you have created and ensure it is ticked and then it should be available every time you open Excel.

  8. #8
    Registered User
    Join Date
    04-04-2016
    Location
    iowa
    MS-Off Ver
    2013
    Posts
    5

    Re: creating a macro to print all sheets on dropdown list

    Thank you very much for helping me out with this.

+ 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. [SOLVED] Macro creating new sheets from the list
    By Tapyr in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-14-2015, 08:27 AM
  2. Creating a simple macro with selection from dropdown list
    By Tescatlipoca in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-24-2014, 11:54 AM
  3. Creating/using a Macro Using two sheets of data w/dropdown
    By jnorton2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2013, 12:50 PM
  4. Creating/using a Macro Using two sheets of data w/dropdown
    By jnorton2 in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 11-02-2013, 08:28 AM
  5. [SOLVED] Macro to Unhide sheets from a Dropdown List
    By JO505 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 05:32 PM
  6. Creating a macro to print only the sheets and portion of sheets that i select.
    By cadamhill in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-31-2012, 01:48 PM
  7. Need a Macro.Create new sheets from one, where need to select from a dropdown list
    By Javier091 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2011, 08:47 AM

Tags for this Thread

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