Exporting sheet template to PDF generates Runtime Error 5: Invalid Procedure call or argument

前端 未结 4 1416
半阙折子戏
半阙折子戏 2021-01-22 13:03

I have created a macro to export the sheet template to PDF:

ActiveWorkbook.Sheets(\"Sheet2\").ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
  ActiveWorkbook.         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-22 13:51

    You also must have Excel's free Microsoft Save as PDF or XPS add-in installed.

提交回复
热议问题