Hi,
I would like to ask for help.
I have two sheets:
- "data" and
- "performance".
In sheet "data" (in "A2") I have a text I'm going
to search for in sheet "performance"
when that text is found in "performance" - I need to paste
"DONE" (paste_Value) into the cell one column left of the cell the
text is found
function
myFunction() {
const sheet1 =
SpreadsheetApp.getActiveSpreadsheet().getSheetByName("data");
const sheet2 =
SpreadsheetApp.getActiveSpreadsheet().getSheetByName("performance");
var value1 = sheet1.getRange("A2").getValue();
const tekst1 = 'DONE'
const findString = value1;
const textFinder = sheet2.createTextFinder(value1);
const items = textFinder.findAll();
const cell = textFinder.findNext();
const wiersz = cell.getRow();
const kolumna = cell.getColumn()-1;
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/74a7570a-f0e0-440c-b976-b352c5de2f00n%40googlegroups.com.
Were you able to implement this?