Please forgive me if I am not explaining something correctly. I have been using MS Office VBA for the past 15 years and I am just now trying to switch over to Google Apps Script.
I am using some code that has global variables set. After I got the first part of what I was trying to do to work, I added a function for when I edit my sheet. The code I found as an example started with function onEdit(event)
.
Initially, this function didn't work, but I found that if I removed the global variables I used with the previous function, the function onEdit(event)
worked. Why would global variables prevent other functions from running? I made sure that there were none of those set variables in the function onEdit(event)
code, so I would think it wouldn't interfere with that code.