gpt4 book ai didi

excel - 将 Excel 范围另存为 pdf

转载 作者:行者123 更新时间:2023-12-02 00:23:32 24 4
gpt4 key购买 nike

我想将特定工作表或特定范围“另存为”pdf。

我尝试在我的代码中实现一个范围。

这是我一直在处理的内容:

ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"c:\Book1.pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True

最佳答案

你有代码,只需使用范围而不是activesheet

例如Sheets("Sheet1").Range("B2:H28").ExportAsFixedFormat ...

关于excel - 将 Excel 范围另存为 pdf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13073888/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com