Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.15 KB

Word.Cells.DistributeHeight.md

File metadata and controls

57 lines (34 loc) · 1.15 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Cells.DistributeHeight method (Word)
vbawd10.chm155844814
vbawd10.chm155844814
Word.Cells.DistributeHeight
0ae41e05-5ec1-4fcc-8ee1-c40c0a28714a
06/08/2017
medium

Cells.DistributeHeight method (Word)

Adjusts the height of the specified cells so that they are equal.

Syntax

expression. DistributeHeight

expression Required. A variable that represents a 'Cells' collection.

Example

This example adjusts the height of the rows in the first table in the active document so that they're equal.

ActiveDocument.Tables(1).Rows.DistributeHeight

This example adjusts the height of the first three rows in the first table so that they're equal.

Dim rngTemp As Range 
 
If ActiveDocument.Tables.Count >= 1 Then 
 Set rngTemp = ActiveDocument.Range(Start:=ActiveDocument _ 
 .Tables(1).Rows(1).Range.Start, _ 
 End:=ActiveDocument.Tables(1).Rows(3).Range.End) 
 rngTemp.Rows.DistributeHeight 
End If

See also

Cells Collection Object

[!includeSupport and feedback]