Excel: VBA to print to PDF - Run time error 1004

后端 未结 5 2160
谎友^
谎友^ 2021-01-07 10:32

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

5条回答
  •  余生分开走
    2021-01-07 10:32

    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!

提交回复
热议问题