How do I know if spreadsheet cells are merged using google apps script

后端 未结 9 1270
予麋鹿
予麋鹿 2020-12-01 17:10

In a Google docs spreadsheet. If cells A1 & A2 are merged, is there a way to confirm they are merged, using google apps script?

There is a merge function in GAS

9条回答
  •  天涯浪人
    2020-12-01 17:39

    For those like me who didn't know the .breakapart() method to unmerge cells: https://developers.google.com/apps-script/class_range#breakApart

    Thanks to Henrique for the tip !

提交回复
热议问题