Hi there,
See if the following code does what you need:
Option Explicit
Sub SetZoom()
Const iMINIMUM_ZOOM As Integer = 85
Dim wks As Worksheet
Set wks = ActiveSheet
With wks.PageSetup
.FitToPagesWide = 1
.FitToPagesTall = 1
.Zoom = False
Application.ExecuteExcel4Macro "PAGE.SETUP(,,,,,,,,,,,,{1,#N/A})"
Application.ExecuteExcel4Macro "PAGE.SETUP(,,,,,,,,,,,,{#N/A,#N/A})"
If .Zoom < iMINIMUM_ZOOM Then
.Zoom = False
End If
End With
End Sub
Acknowledgement to Andy Pope for the Excel4 macro part of the code.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks