I add script using tools/script editor. I add my simple popup function :
function test(){
Browser.msgBox('This is test')
}
Then in google sheet, i add an image as button and attach the script 'test'.
It works fine, but i want to pass value from a cell. How can i do it?
For example, i modify the function as follow :
function test(val){
Browser.msgBox('This is test. Value is '+val)
}
if i want to pass value from cell B4 --> test(B4). How to do it properly ? i'm not allowed to include the parameter B4 when assigning script to image/button. It will say 'script could not be found'.
Thanks


