Skip to content
本页内容

MergeCells (属性)

如果样式包含合并的单元格,则为 TrueAny 型,可读写。

示例

python
#本示例将A1:B2单元格区域合并为一个单元格
def test():
    Range("A1:B2").MergeCells = True
python
#本示例显示活动工作簿第一个样式是否包含合并的单元格
def test():
    print(ActiveWorkbook.Styles.Item(1).MergeCells)