0
我試圖將選擇保存爲pdf,除了我不能保存文件和特定名稱,我不能保存文件名和特定名稱,日期和時間......它工作正常,除了當我試圖把今天的日期和時間...... 這是我的代碼將excel另存爲pdf,文件名稱作爲變量值
Sub guardar_pdf()
'
' Macro7 Macro
'
'
Range("A1:Q4").Select
With ActiveSheet.PageSetup
.Orientation = xlLandscape
.Zoom = 60
.PrintGridlines = True
End With
Dim fe As String
fe = now
With Selection
.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\Diego\Dropbox\informes\informe"&fe, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
End With
End Sub
愛你的男人!!!!!!!!!!!!! – diego
沒問題,很高興幫助:) – mrbungle