使用VBA設置打印頁面高度和寬度(一般需要設置在一頁紙的時候)
1 Sub Setprintpage() '設置打印頁面為縮放到一頁 2 Application.PrintCommunication = False '關掉打印通訊 3 With ActiveSheet.PageSetup 4 .Zoom = True 5 .FitToPagesWide = 1 6 .FitToPagesTall = 1 7 End With 8 Application.PrintCommunication = True '恢復打印通訊 9 End Sub