Skip to content

Latest commit

 

History

History
81 lines (43 loc) · 1.48 KB

PowerPoint.DocumentWindow.Width.md

File metadata and controls

81 lines (43 loc) · 1.48 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
DocumentWindow.Width property (PowerPoint)
vbapp10.chm511013
vbapp10.chm511013
PowerPoint.DocumentWindow.Width
ede3967a-5d52-ba5d-2279-ea7345a7d370
06/08/2017
medium

DocumentWindow.Width property (PowerPoint)

Returns or sets the width of the specified object, in points. Read/write.

Syntax

expression.Width

expression A variable that represents a DocumentWindow object.

Return value

Single

Example

This example arranges windows one and two horizontally; in other words, each window occupies half the available vertical space and all the available horizontal space in the application window's client area. For this example to work, there must be only two document windows open.

Windows.Arrange ppArrangeTiled

ah = Windows(1).Height                      ' available height

aw = Windows(1).Width + Windows(2).Width    ' available width

With Windows(1)

    .Width = aw

    .Height = ah / 2

    .Left = 0

End With

With Windows(2)

    .Width = aw

    .Height = ah / 2

    .Top = ah / 2

    .Left = 0

End With

This example sets the width for column one in the specified table to 80 points (72 points per inch).

ActivePresentation.Slides(2).Shapes(5).Table.Columns(1).Width = 80

See also

DocumentWindow Object

[!includeSupport and feedback]