Closed Thread
Results 1 to 7 of 7

printing pdf of 218 closed xls files - (2) ?'s

  1. #1
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    printing pdf of 218 closed xls files - (2) ?'s

    Customer wants me to make pdfs of 218 of my xls files(Ultrasonic Inspection Test reports of weldments). I'm using Adobe Distiller so no problem printing to pdf.

    1) Can this be done with VBA without manually opening each and every file and then printing to pdf?

    2) If yes, Then
    Should I set the security setting so that it doesn't stop_
    and ask me to enable macros for each and every file?
    End If
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  2. #2
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: printing pdf of 218 closed xls files - (2) ?'s

    Found an answer to question #1 online,
    Here is a macro written to open closed files (all in one folder) and then print, close, move to the next file....etc...

    Please Login or Register  to view this content.
    Last edited by jwright650; 02-24-2011 at 11:53 AM.

  3. #3
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: printing pdf of 218 closed xls files - (2) ?'s

    Here is the working xls file. This seems to work great. Just set your default printer to your pdf printer.

    I haven't tried it with and files that have macros yet....so I will post back when I do and can answer my Question #2.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: printing pdf of 218 closed xls files - (2) ?'s

    BTW, answer to question #2 is "yes", turn security off and allow it to enable macros...buzzes right along...I broke up the files into 25 per folder because I still had to accept each name that it gave the new pdf file. I got through all 218 in no time, plus 25 more of another report.

  5. #5
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: printing pdf of 218 closed xls files - (2) ?'s

    Was able to get this issue resolved and customer was happy....This thread is "Solved"

  6. #6
    Registered User
    Join Date
    06-09-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Re: printing pdf of 218 closed xls files - (2) ?'s

    Hi ,

    I was trying to use this macro to print all excel files as PDF saved in a single folder. The macro stops at "With Application.Filesearch" highlighted in yellow. I am pretty new with macros , can you help?

    Regards
    Kalpesh

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: printing pdf of 218 closed xls files - (2) ?'s

    Kalpesh,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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