title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Cell.Merge method (Word) |
vbawd10.chm156106956 |
|
|
79d929bd-9578-e937-405f-8ad970ae883c |
06/08/2017 |
medium |
Merges the specified table cell with another table cell. The result is a single table cell.
expression.Merge (MergeTo)
expression Required. A variable that represents a 'Cell' object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
MergeTo | Required | Cell object | The cell to be merged with. |
This example merges the first two cells in table one in the active document with one another and then removes the table borders.
If ActiveDocument.Tables.Count >= 1 Then
With ActiveDocument.Tables(1)
.Cell(Row:=1, Column:=1).Merge _
MergeTo:=.Cell(Row:=1, Column:=2)
.Borders.Enable = False
End With
End If
[!includeSupport and feedback]