Is there any way to force a Google Spreadsheets to have column i
in tab j
of same width as column i
in tab k
?
In other words, can I configure Google Spreadsheets so that a column width change is always applied to all sheets in a Google Spreadsheets document?
Best Answer
This can be done with an Apps Script. To use, enter it in (Tools > Script editor), save, and add a trigger via (Resources > This project's triggers) with parameters "from spreadsheet" and "on change".
The change of column width is an event of type "OTHER". It doesn't seem possible to detect which column was changed; only what sheet (tab) it came from. So I record the width of all columns in that sheet, and set their counterparts accordingly.
An assumption made here is that the column whose length was modified is within the data range of the sheet: that is, either it contains some data, or some column to the right of it does.