Scale document to one page if zoom % exceeds one page boundaries

ThomasOES

Board Regular
Joined
Aug 29, 2017
Messages
174
I like to print a grid of data at 120% zoom. However if the grid is large the 120% spills over to another page. How to keep the zoom % but decrease if the grid of data is too large for one page?

My code
Code:
[FONT=Verdana]Sub seqprt()
'PRINT PREVIEW FOR SEQUENCE CHART
Sheets("Key").Select
Range("B1", Range("H100").End(xlUp)).Name = "SeqChart"
With Sheets("Key").PageSetup
    .PrintArea = SeqChart
    .LeftHeader = "&""Arial,bold""&10" & Range("Instrument") & "  " & Range("Program")
    .RightHeader = "&""Arial,Bold""&12" & Range("Operator") & "    " & "&""Arial,Bold""&10&D"
    .LeftMargin = Application.InchesToPoints(0.5)
    .RightMargin = Application.InchesToPoints(0.5)
    .TopMargin = Application.InchesToPoints(0.5)
    .BottomMargin = Application.InchesToPoints(0.5)
    .HeaderMargin = Application.InchesToPoints(0.3)
    .FooterMargin = Application.InchesToPoints(0.3)
    .CenterHorizontally = True
    .CenterVertically = False
    .Orientation = xlPortrait
    .Draft = True
    .PaperSize = xlPaperLetter
    .BlackAndWhite = True
    .Zoom = 120
    .FitToPagesWide = 1
    .FitToPagesTall = 1
End With
Range("SeqChart").PrintPreview
Call Show_LotQual_Ctrl
End Sub[/FONT]

Thanks for any help

Tom
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top