Vba 如何使用横向定向发布pdf
我一直在尝试从excel工作表发布Vba 如何使用横向定向发布pdf,vba,Vba,我一直在尝试从excel工作表发布.pdf文件 Selection.ExportAsFixedFormat _ Type:=xlTypePDF, _ Filename:="C:\TestFolder\temp.pdf", _ Quality:=xlQualityStandard, _ IncludeDocProperties:=True, _ IgnorePrintAreas:=False, _ OpenAfterPublish:=True
.pdf
文件
Selection.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:="C:\TestFolder\temp.pdf", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=True , _
Orientation:=xlLandscape
但是,最后一行没有按照我的预期工作
如何发布面向横向的pdf?看起来“方向”不是ExportAsFixedFormat的参数(请参阅库参考)
我建议首先使用如下方式设置所选图纸上的页面方向:
ActiveSheet.PageSetup.Orientation = xlLandscape