I am making a few of matrix of educational programs.
I need to insert cell's note (for example in sheet D1) from a cell of another sheet (for example sheet "dict_LO") by key cells of both sheets with some word (this word is in the cell where to insert note).
On a post is a solution.
Punchlinern proposed a script:
function noteSetter() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var cell = sheet.getRange(2, 2);
cell.setNote(sheet.getRange(1,1).getValue());
}
function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var entries = [{
name : "Set cell note",
functionName : "noteSetter"
}];
sheet.addMenu("Scripts", entries);
};
This script must be modified under my conditions, but I do not know how 🙁
How does it?
Voila, my spreadsheet.
Best Answer
The following code looks for the selected value on the first column of simple table of notes. If the value is found the add a note with the corresponding description, otherwise add a note with an error message.