google-sheets-macros

In Google Sheets how can I write a script to move each drawing to a specific location on the sheet?

南笙酒味 提交于 2021-02-11 13:52:48
问题 I have a Google sheet with four drawings i.e. shapes. What script would move each shape to a designated location on the sheet? Here is a link to an example where I'd like to click on the blue rectangle and have the script move the green rectangle to cover cell A1, the purple triangle to cell D7, and the orange circle to cell I3. https://drive.google.com/open?id=1eFCwDiY90ZM5SIMa6C0rSdhG_oC-SWgsk8vAvjIR34s I can't find a way to select specific drawings. 回答1: I believe your goal as follows. You

Copy over the row in another sheet when checkbox checked in Google Sheets

烈酒焚心 提交于 2021-02-11 08:09:51
问题 What can be the way to cut a specific row and paste it into another tab of the same sheet when checkbox condition meet is true? 回答1: in given scenario: on Sheet1 you have a checkbox in A1 cell with logic FALSE/TRUE on Sheet2 paste this formula into A1 cell: =IF(Sheet1!A1=TRUE, Sheet1!B1:1, ) 来源: https://stackoverflow.com/questions/54890922/copy-over-the-row-in-another-sheet-when-checkbox-checked-in-google-sheets

Copy over the row in another sheet when checkbox checked in Google Sheets

我的梦境 提交于 2021-02-11 08:08:59
问题 What can be the way to cut a specific row and paste it into another tab of the same sheet when checkbox condition meet is true? 回答1: in given scenario: on Sheet1 you have a checkbox in A1 cell with logic FALSE/TRUE on Sheet2 paste this formula into A1 cell: =IF(Sheet1!A1=TRUE, Sheet1!B1:1, ) 来源: https://stackoverflow.com/questions/54890922/copy-over-the-row-in-another-sheet-when-checkbox-checked-in-google-sheets

Copy over the row in another sheet when checkbox checked in Google Sheets

喜你入骨 提交于 2021-02-11 08:08:44
问题 What can be the way to cut a specific row and paste it into another tab of the same sheet when checkbox condition meet is true? 回答1: in given scenario: on Sheet1 you have a checkbox in A1 cell with logic FALSE/TRUE on Sheet2 paste this formula into A1 cell: =IF(Sheet1!A1=TRUE, Sheet1!B1:1, ) 来源: https://stackoverflow.com/questions/54890922/copy-over-the-row-in-another-sheet-when-checkbox-checked-in-google-sheets

Copying data after deleting empty rows in Google Sheets using Apps Script?

99封情书 提交于 2021-01-28 03:44:03
问题 The following code is working fine. It is sorting, removing duplicates and deleting empty rows. Then I just want to copy the rows of data to after the last data row. But the code is copying the rows of data with empty rows. Need to avoid empty rows while copying var column = 3; range.sort({column: column, ascending:true}); range.removeDuplicates([column]); //now delete empty rows if any for (var i = range.getHeight(); i >= 1; i--){ if(range.getCell(i, 1).isBlank()){ sheet.deleteRow(range

Copying data after deleting empty rows in Google Sheets using Apps Script?

一世执手 提交于 2021-01-28 02:32:11
问题 The following code is working fine. It is sorting, removing duplicates and deleting empty rows. Then I just want to copy the rows of data to after the last data row. But the code is copying the rows of data with empty rows. Need to avoid empty rows while copying var column = 3; range.sort({column: column, ascending:true}); range.removeDuplicates([column]); //now delete empty rows if any for (var i = range.getHeight(); i >= 1; i--){ if(range.getCell(i, 1).isBlank()){ sheet.deleteRow(range