我创建了一个宏来将工作表模板导出为 PDF:
ActiveWorkbook.Sheets("Sheet2").ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
ActiveWorkbook.Path & "\Survey Report.pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
我尝试了其他方式,但在错误方面没有区别。
已经尝试过的链接:
- http://www.mrexcel.com/forum/excel-questions/608810-printing-multiple-worksheets-pdf-2.html
- http://www.mrexcel.com/forum/microsoft-access/385749-exportasfixedformat-error.html
- http://answers.microsoft.com/en-us/office/forum/office_2010-customize/error-5-invalid-procedure-call-or-argument/574c2c8f-7f2c-4644-9373-bbc14c8d3fd7?msgId=4dbee3f3- ad28-4427-a50b-a3904b09ec1e