简体   繁体   English

Google Script - 取消合并单元格的功能?

[英]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简单的

  1. copy from google sheets从谷歌表格复制
  2. Paste in Excel在 Excel 中粘贴
  3. unmerge all the cells in Excel取消合并 Excel 中的所有单元格
  4. paste in google sheets .粘贴在谷歌表中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 所有粘贴单元格中的Google脚本onEdit - Google script onEdit in all pasted cells 构建 Excel function:取消合并、计算、重新合并。 问题:Function 开始运行递归未完成 - Build Excel function: Unmerge, calculate, re-merge. Problem: Function starts to run recursive before finishing Google App脚本中IF函数中的IF函数 - IF function within an IF function in Google App Script google电子表格查询功能:用具有不同类型单元格的列扩展行为 - google spreadsheet query function: Extrange behavoir with columns with different types of cells Google表格:编写了计算功能,添加了之前点击的单元格,而不是当前的单元格 - Google Table Chart: Wrote a calculation function, adds the previously click cells instead of the current cells 在 Google Apps 脚本中的同一脚本中调用另一个 function 中的 function - Call a function within another function in the same script in Google Apps Script Google Apps脚本函数返回html中未定义的 - Google apps script function returns undefined in html 在 Google Apps 脚本中循环重置 function - Looping a reset function in Google Apps Script Google Apps脚本全局数组功能不可编辑 - Google apps script global array not editable in function Google表格脚本:将函数作为参数传递 - Google Sheets Script: Passing function as a parameter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM