I have tried using the following solution to print from Excel to PDF:
Excel 2013 Print to PDF in VBA
While the solution seems to have worked for other people
If the worksheet that you are exporting contains no data then the export fails. I found this solution on the MrExcel forum, where someone appears to have stumbled over the answer!