Skip to content

Latest commit

 

History

History
67 lines (37 loc) · 1.55 KB

PowerPoint.View.ZoomToFit.md

File metadata and controls

67 lines (37 loc) · 1.55 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
View.ZoomToFit property (PowerPoint)
vbapp10.chm512009
vbapp10.chm512009
PowerPoint.View.ZoomToFit
b35e3466-c135-bc5f-40d6-0331cf642b12
06/08/2017
medium

View.ZoomToFit property (PowerPoint)

Determines whether the view is zoomed to fit the dimensions of the document window every time the document window is resized. Read/write.

Syntax

expression. ZoomToFit

expression A variable that represents a View object.

Return value

MsoTriState

Remarks

This property applies only to slide view, notes page view, or master view.

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

The value of the ZoomToFit property can be one of these MsoTriState constants.

Constant Description
msoFalse The view is not zoomed to fit the dimensions of the document window every time the document window is resized.
msoTrue The view is zoomed to fit the dimensions of the document window every time the document window is resized.

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

See also

View Object

[!includeSupport and feedback]