2016-09-20 9 views
1

以下のコードを続けて、印刷領域を1ページに収める方法は?選択した領域を1ページに印刷するPDF

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

答えて

0

エクスポートした後は、これ以上は使用できません。私は何

は、私が

With ActiveSheet.PageSetup 
    .FitToPagesWide = 1 
    .FitToPagesTall = 1 
    .Orientation = xlLandscape 
End With 

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

おかげで、それは今働いている(をエクスポートする前.FitToPagesWide = 1PageSetupを変更です! –

+0

素晴らしいニュース@ Amith.B!あなたは[誰かが私の質問に答えるときに何をすべきですか?](http://stackoverflow.com/help/someone-answers)を認識していますか? –

関連する問題