Sub 印刷2032x1180() Application.ActivePrinter = "LPT1: の EPSON VP-1100" ActiveSheet.PageSetup.PrintArea = "" With ActiveSheet.PageSetup .TopMargin = Application.InchesToPoints(0) .BottomMargin = Application.InchesToPoints(0) End With ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _ "LPT1: の EPSON VP-1100" End Sub
With ActiveSheet.PageSetup .PaperSize = xlPaperUser End With