我正在尝试创建一个没有任何用户界面的PDF文件,而不是单击Excel文件中的按钮。 End With
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:="Adobe PDF= TimeSerial(newHour, newMinute, newSecond
但是,当试图打开excel并将其保存为pdf时,我会收到以下错误消息
错误代码:-2147417851
Dim xlApp As New Excel.ApplicationxlWorkBook.Sheets("Sheet1") xlApp.DisplayAlerts = False
xlWorkSheet.E
我正在尝试将Excel文件另存为PDF,但使用自定义文件名。 我只会将Excel文件中的一段添加到提示文件名中。根据这里的查询: Save excel as PDF in current folder using current workbook name Save excel as PDF in currentfolder using current workbook name 我的代码如下所示: Sub DPPtoPDF()