Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9843

How to select and remove drawing object in macro

$
0
0

I have a Google Sheet template with a button that triggers a macro to make a new copy of itself that can than be edited (code below). I'd like the macro to remove the button on its copy, as there's no need to make a copy of the copy. However, when I tried to record the steps to delete the button, the code doesn't appear in the resulting macro.

Is there code that can be added to my CopySheet macro that remove the button object?

Any help would be appreciated.

function CopyDA() {  var spreadsheet = SpreadsheetApp.getActive();  spreadsheet.getRange('A1').activate();  spreadsheet.copy('Deal Analyser - ');};

Viewing all articles
Browse latest Browse all 9843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>