Sub savePdf(ByRef st As Worksheet, saveTo As String) st.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _ saveTo, Quality:= _ xlQualityStandard, IncludeDocProperties:=True, _ IgnorePrintAreas:=False, _ OpenAfterPublish:=False End Sub使い方:
Call savePdf(ActiveSheet, "c:\abc.pdf")
0 件のコメント:
コメントを投稿