[英]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. GAS 有一种取消合并单元格的方法,但不幸的是无法知道合并了哪些单元格。 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
一些用户提出了一些解决方法,我更喜欢的一种在这篇文章中进行了描述: Split (break away) 合并的表格单元格在谷歌电子表格中使用应用程序脚本
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.将数据粘贴到 Excel 中,取消合并所有单元格并将其粘贴回谷歌表格中,通过将文本包裹在合并单元格所在的列中来确认。
simple简单的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.