【发布时间】:2017-12-15 04:53:17
【问题描述】:
我有此代码要导出到 PDF,但它会转到 documents 文件夹。我想将其导出到其他位置。我该怎么做?
这是代码:
Private Sub CommandButton1_Click()
Range("a1:k44").Select
Selection.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=ru & "REMITO " & Range("C7") & ".pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
End Sub
【问题讨论】:
-
在文件名中包含路径?
标签: excel export-to-pdf vba