Share via


ZoomToFit Property

MsoTriState

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue The view is zoomed to fit the dimensions of the document window every time the document window is resized.

Remarks

When the value of the Zoom property is explicitly set, the value of the ZoomToFit property is automatically set to msoFalse.

Example

The following example sets the view in document window one to slide view, with the zoom automatically set to fit the dimensions of the window.

With Windows(1)
    .ViewType = ppViewSlide
    .View.ZoomToFit = msoTrue
End With

Applies to | View Object

See Also | DisplaySlideMiniature Property | FitToPage Method