Jeg har løst udfordringen med følgende makroer:
Sub SeA4Format()
'
' SeA4Format Makro
' Makro af PI
'
With ActiveSheet.PageSetup
.Orientation = xlPortrait
.PaperSize = xlPaperA4
.Zoom = 95
End With
ActiveSheet.PageSetup.PrintArea = "$A$9:$H$604"
ActiveWindow.SelectedSheets.PrintPreview
End Sub
Sub SeA3Format()
'
' SeA3Format Makro
' Makro af PI
'
ActiveSheet.PageSetup.PrintArea = "$A$56:$AE$604"
With ActiveSheet.PageSetup
.Orientation = xlLandscape
.PaperSize = xlPaperA3
.FirstPageNumber = xlAutomatic
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 10
End With
ActiveWindow.SelectedSheets.PrintPreview
End Sub
Når hhv. A4 og A3 formaterne vises, kan der printes fra siden, hvis dette ønskes.