Convert Excel file into PDF

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Sanskey
Newbie
Posts: 6
Joined: Mon May 11, 2015 11:45 am

Convert Excel file into PDF

Post by Sanskey » Tue Oct 06, 2015 6:34 pm

Hi there,

I'm wondering how to make an PDF file from an Excel file. Basically I want to have an existent Excel file from a Folder converted it into a pdf.

Can someone help me out with the code?

Thanks in advance!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Convert Excel file into PDF

Post by Marcus Tettmar » Wed Oct 07, 2015 9:35 am

Does your version of Excel let you save to PDF? If so, record a macro inside Excel which does that. Then convert the VBA it produces to VBScript to run inside Macro Scheduler:

http://help.mjtnet.com/article/19-conve ... o-vbscript

Or keep the Excel macro inside Excel and run it with XLRun.

Or just simulate sending the keystrokes to Excel to do a Save As.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Sanskey
Newbie
Posts: 6
Joined: Mon May 11, 2015 11:45 am

Re: Convert Excel file into PDF

Post by Sanskey » Wed Oct 07, 2015 2:56 pm

XLRun worked for me and the macro inside the Excel.

Thank you!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts