我想将另存为特定工作表或特定范围的数据另存为pdf。
我尝试在我的代码中实现范围。
这是我一直在使用的内容:
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"c:\Book1.pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
您有代码,只需使用范围而不是activesheet
例如Sheets("Sheet1").Range("B2:H28").ExportAsFixedFormat ...