google spreadsheet - How do I get the onEdit script to run -


I have created a spreadsheet, then added some values ​​I opened the script editor through the menu and added an onEdit function. For my life, I can not get that script to do anything when I edit a cell in the sheet.

If I hit the "Run" button in the editor in particular, it defeats the purpose of what I am losing?

If this is the case then my code is

Edited on the function () {Browser.msgbox ("test"); Var Sheet = SpreadsheetEp.Active Sheet (); Var rng = sheet.getActiveRange (); Var val = rng.getValues ​​(); Var col = rng.getColumn (); Var line = rng.getRow (); Var h_string = '= HYPERLINK ("http://example.com?id='+val+', '' + + wall + ')'; If (col == 4) {col =" D "; Cell = Sheet.getRange (col + row); cell.setFormula (h_string);}};

The project is set for the trigger on edit function but again when I edit the cell , Then nothing happens.

Did you try to call your function onEdit not onBugEdit ?
Also remember that when editing "cell".


Your code can be simplified:

  Edit on function (if (e.range.getColumn () == 4) {MaheEplink (e)}}; Function Make Hyperlink (e) {e.range.setFormula ('= HYPERLINK ("http : //example.com? Id = '+ e.value +' "," '+ e.value +' '' ')); };  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -