Skip to content

Latest commit

 

History

History
54 lines (29 loc) · 1.05 KB

PowerPoint.DocumentWindow.FitToPage.md

File metadata and controls

54 lines (29 loc) · 1.05 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
DocumentWindow.FitToPage method (PowerPoint)
vbapp10.chm511015
vbapp10.chm511015
PowerPoint.DocumentWindow.FitToPage
91ea2102-df12-20fe-cd16-e664832f9eb5
06/08/2017
medium

DocumentWindow.FitToPage method (PowerPoint)

Adjusts the size of the specified document window to accommodate the information that's currently displayed.

Syntax

expression. FitToPage

expression A variable that represents a DocumentWindow object.

Example

This example exits the current slide show, sets the view in the active window to slide view, sets the zoom to 25 percent, and adjusts the size of the window to fit the slide displayed there.

Application.SlideShowWindows(1).View.Exit

With Application.ActiveWindow

    .ViewType = ppViewSlide

    .View.Zoom = 25

    .FitToPage

End With

See also

DocumentWindow Object

[!includeSupport and feedback]