Skip to content

Latest commit

 

History

History
77 lines (41 loc) · 1.58 KB

PowerPoint.Application.Top.md

File metadata and controls

77 lines (41 loc) · 1.58 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.Top property (PowerPoint)
vbapp10.chm502027
vbapp10.chm502027
PowerPoint.Application.Top
d8c70fc9-e0f1-ed53-7a22-150838599719
06/08/2017
medium

Application.Top property (PowerPoint)

Returns or sets a Single that represents the distance in points from the top edge of the document, application, and slide show window to the top edge of the application window's client area. Read/write.

Syntax

expression.Top

expression A variable that represents an Application object.

Return value

Single

Remarks

Setting this property to a very large positive or negative value may position the window completely off the desktop.

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

sngHeight = Windows(1).Height                     ' available height

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

With Windows(1)

    .Width = sngWidth

    .Height = sngHeight / 2

    .Left = 0

End With

With Windows(2)

    .Width = sngWidth

    .Height = sngHeight / 2

    .Top = sngHeight / 2

    .Left = 0

End With

See also

Application Object

[!includeSupport and feedback]