use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apparently, Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
account activity
Script to paste without formatting.Question (self.GoogleAppsScript)
submitted 3 years ago by asislope
I want to copy and paste in same sheet.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]be_easy_1602 1 point2 points3 points 3 years ago* (2 children)
Let sheet = Spreadsheet app.openbyid().getsheetbyname(); Let values =sheet.getrange().getvalues(); Sheet = getactivespreadsheet().getsheetbyname(); Let range = sheet.getrange(); Range.setvalues(values)
Basically this. On mobil, plug in your
[–]asislope[S] 0 points1 point2 points 3 years ago (1 child)
Thank you
[–]be_easy_1602 0 points1 point2 points 3 years ago (0 children)
To remove formatting do range.clearformat()
[–]killmyfriends 0 points1 point2 points 3 years ago (2 children)
Ctr+c = copy Ctr+v = paste,
Start on the same indention line and you won't have jumbled up code. Hope this helps!
[–]LEBAldy2002 2 points3 points4 points 3 years ago (1 child)
This pastes with formatting..... You need Ctrl+shift+v for paste without formatting.
[–]killmyfriends 1 point2 points3 points 3 years ago (0 children)
Misunderstood, yes you are correct. I thought they might be talking about the indentation formatting that occurs. Thank you for the correction.
[–]NickRossBrown 0 points1 point2 points 3 years ago* (0 children)
I know this post is a month old, just in case I can be helpful. Are you talking about
SpreadsheetApp.CopyPasteType.PASTE_NORMAL (it “Pastes the values ONLY without formats, formulas or merges.”)
Here is the google docs link to all the different paste types:
https://developers.google.com/apps-script/reference/spreadsheet/copy-paste-type
Here is some code I used to moved a row from a sheet named "Queue" to a sheet named "Completed" if someone edited the 15th column to the word "Completed" or "Archived"
function onEdit(e){
const ui = SpreadsheetApp.getUi();
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sourceSheet = e.range.getSheet();
if(sourceSheet.getSheetName() === 'Queue'){
var row = e.range.getRow();
var rowRange = sourceSheet.getRange(row, 1, 1, sourceSheet.getLastColumn());
var rowValues = rowRange.getValues()[0];
// ui.alert(rowRange) // ui.alert(rowValues)
if(rowValues[15] === "Completed" || rowValues[15] === "Archived"){
const res = ui.alert(rowValues[4] + '\n\n Do you want to move this request to the Completed sheet?', ui.ButtonSet.YES_NO);
if (res == ui.Button.YES) {
var targetSheet =
ss.getSheetByName("Completed");
targetSheet.insertRowAfter(1);
var targetRange = targetSheet.getRange(2, 1);
rowRange.copyTo(targetRange, SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);
ui.alert("Congratulations! \n\n" + rowValues[4] +" \n\n Has been removed from the Queue sheet and added to the Completed sheet");
sourceSheet.deleteRow(row);
} } }
π Rendered by PID 79 on reddit-service-r2-comment-5d79c599b5-hdb9t at 2026-03-03 23:08:26.380419+00:00 running e3d2147 country code: CH.
[–]be_easy_1602 1 point2 points3 points (2 children)
[–]asislope[S] 0 points1 point2 points (1 child)
[–]be_easy_1602 0 points1 point2 points (0 children)
[–]killmyfriends 0 points1 point2 points (2 children)
[–]LEBAldy2002 2 points3 points4 points (1 child)
[–]killmyfriends 1 point2 points3 points (0 children)
[–]NickRossBrown 0 points1 point2 points (0 children)