Script to automatically capitalize contents of a cell in Google Sheets?
问题 I have a spreadsheet that takes input of stock symbols. I would like them to always be in ALL CAPS regardless of how they are typed in. This appears to require some scripting as there is no way to do this with a function unless a second copy of the column exists, which is not acceptable. I have a solution which works, with one critical problem. The code is as follows: function OnEdit(e) { var ss = e.source.getActiveSheet(), sheets = ['Trades', ''], ind = sheets.indexOf(ss.getName()); if (ind