简体   繁体   中英

Google Script - Function to unmerge cells?

I'm in the process of automating one of my weekly reports - however part of this process involves the merging of cells and unmerging - currently unmerging is done seperatly however im just wondering if such a method exists to find cells that are merged and unmerge them?

Many thanks.

我对这个问题的回答是“格式”菜单中的“清除格式”选项。

GAS has a method to unmerge cells but unfortunately there is no way to know which cells are merged. Some users have suggested a few workarounds, the one I prefer is described in this post: Split (break apart) merged table cells in google spreadsheet with an apps script

There is also an enhancement request and interesting suggestions mentioned in this post: How do I know if spreadsheet cells are merged using google apps script

Paste the data in Excel , unmerge all the cells and past it back in google sheets , confirm by wrapping the text in the column where there were Merged cells.

simple

  1. copy from google sheets
  2. Paste in Excel
  3. unmerge all the cells in Excel
  4. paste in google sheets .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM