+ Reply to Thread
Results 1 to 7 of 7

Printing Mutiple documents from a changing list

  1. #1
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Talking Printing Mutiple documents from a changing list

    Hi Folk

    Is it possible to have a macro to print documents that are showing in a list which is constantly changing

    I have a list of job titles.... I have a list of 'Risk Assessments',,, some risk assessments cover some of the jobs but not others.

    e.g.,,,,,,,,, "Driver", Risk assessments 1,4,7,8,9,.... "Production Operator" 1,4,7,10,12,15

    Using a dropdown list, when I choose a job my list shows the relevant 'Risk Assessments'. I would like to have a button which would only print the relevant RA documents showing in the list

    Many Thanks
    Last edited by JamesT1; 06-03-2010 at 05:21 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Printing Mutiple documents from a changing list

    If you had a sheet in your workbook that was a table...in one column these RA documents as identified in your drop downs (like 1,4,7,10,12,15?)....then the next column is the full path to the document you would want opened/printed...this layout would make it simple to construct a macro to lookup each document in this table and print it.

    More than this would require much more from you. Best of all would be a sample document demonstrating all of this.

    Click GO ADVANCED and use the paperclip icon to post up a desensitized copy of your workbook.
    _________________
    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
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Re: Printing Mutiple documents from a changing list

    Hi JBeaucaire

    Thanks for your reply,,,on the attached book I have added a second sheet with the lists you mentioned... on selecting the jobs on the front sheet it will show the RA required for that job.... this is the list I would like the macro to print

    many thanks
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Printing Mutiple documents from a changing list

    This should do it:
    Please Login or Register  to view this content.

    If it doesn't work as expected, be sure to DEBUG and give me as much information as you can about what line of of code failed.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Re: Printing Mutiple documents from a changing list

    Hi JBeaucaire

    Apologies haven't had the chance to test this until today......

    there is an error code 1004....... Risk Assessment 2.xls... cannot be found

    Please Login or Register  to view this content.
    The risk assessments are word documents,,, could that be the problem

    many thanks

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Printing Mutiple documents from a changing list

    Yes indeed, that's a huge omission of info... (nudge).

    Try this instead:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Re: Printing Mutiple documents from a changing list

    Hi JBeaucaire

    this works a treat,,, thank you very much,,,,, appreciated,,

    apologies for not mentioning the RA s are Word Docs,,, this is the first time I've tried anything like this and it didn't enter my mind,,,,,,,, i'll remember this for the future

    Thank you

    JT

+ 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.6.0 RC 1