Skip to content

Merge Cells Activity

The Merge Cells activity enables users to combine multiple cells within a specified table in a Microsoft Word document. This activity streamlines document formatting by consolidating content from several cells into a single, larger cell.

Field Description Requirement
Word name The reference name of the Word document object where cells will be merged. This document must already be opened or created. Required
Table Index The 1-based index of the target table within the Word document where cells will be merged. Required
Range The specific table cell range to merge, using A1-style notation (e.g., A1:C5). Column indexes range from A to Z, and row indexes from 1 upwards. Required
With all data If selected, all data from the original cells is concatenated into the merged cell. If deselected, only the data from the top-leftmost cell is retained. Optional

Action Types & Examples

Word Name

  • Format: string
  • Example Result: newWord

Table Index

  • Format: integer
  • Example Result: 4

Range

  • Format: string
  • Example Result: A1:C5

With All Data

  • Format: boolean
  • Example Result: true

Implementation Examples

Field Setup - Word name: newWord - Table Index: 4 - Range: A1:C5 - With all data: true

Execution Parameters - MergeCells(WordDocument: newWord, TableIndex: 4, Range: "A1:C5", WithAllData: true)

Technical Notes

The Table Index parameter uses 1-based indexing, where 1 refers to the first table in the document. The Range parameter accepts A1-style cell references; column identifiers are alphabetical (A-Z), and row identifiers are numerical (1-N). When With all data is enabled, the content from all merged cells is combined into the resulting single cell. If disabled, only the content of the top-leftmost cell in the specified range is preserved.