First let me state what we're trying to achieve.
We need to inject some values into a pre-defined spreadsheet with data already on it (basically a copy from a previous version). I thought I could name specific cells using the "defineName" method on the spreadsheet to create named ranges (each one cell in size) and then later find those ranges to set the values.
However, I might be incorrect in what the named ranges are for, but I cannot find a way to find a named range and then set it's value. Is there a way to do this, or some other way to give cells that can be anywhere some kind of "metadata" that I can use later to inject data?
Say for example we have data relating to countries, I'd want to generate the spreadsheet, give each country's cell a number and give the cell a range name of the country. I wouldn't necessarily know the exact cell number, because users could insert new rows/columns etc, but the range name would stay. Then later I'd be able to find the ranges by country name somehow and put different numbers in there.