如何利用宏让Excel 2010另存为PDF时,文件名指定为某一单元格内容?
我对VB不是特别懂,我想问一下,当我需要让Excel2010另存为PDF格式时,同时又能让文件名指定到某个单元格(如A1),请高手解答,告诉我正确的VB语句,谢谢。...
我对VB不是特别懂,我想问一下,当我需要让Excel 2010另存为PDF格式时,同时又能让文件名指定到某个单元格(如A1),请高手解答,告诉我正确的VB语句,谢谢。
展开
展开全部
activeworkbook.saveas "e:\" & [a1] & ".pdf"
试下面这两段,不知道版本,不确定哪个好用
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="D:\另存为.pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
ActiveDocument.ExportAsFixedFormat OutputFileName:="D:\Doc1.pdf", _
ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
试下面这两段,不知道版本,不确定哪个好用
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="D:\另存为.pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
ActiveDocument.ExportAsFixedFormat OutputFileName:="D:\Doc1.pdf", _
ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
博思aippt
2024-07-20 广告
2024-07-20 广告
作为深圳市博思云创科技有限公司的工作人员,对于Word文档生成PPT的操作,我们有以下建议:1. 使用另存为功能:在Word中编辑完文档后,点击文件->另存为,选择PowerPoint演示文稿(*.pptx)格式,即可将文档内容转换为PPT...
点击进入详情页
本回答由博思aippt提供
展开全部
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="D:\另存为.pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
ActiveDocument.ExportAsFixedFormat OutputFileName:="D:\Doc1.pdf", _
ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
ActiveDocument.ExportAsFixedFormat OutputFileName:="D:\Doc1.pdf", _
ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询