How to set the constant series value in excel using apple script.
tell worksheet 1 of active workbook
set obj to make new chart object at end with properties{
left position:120,top:50,width: 120,height:150}
set ochart to chart of obj
tell ochart
make new series at end with properties {series values:"={1}"}
end tell
end tell
This script through error(Microsoft Excel got an error:Can't make class series)
Please replay
I’m not sure if my syntax is wrong or if this is a bug.
You would expect to be able to create a new series with a constant by using:
However, I have only been able to use a range to create the series:
However, once the series has been created you can update the value with:
My workaround has been to find the first blank cell in column A and populate it with a value. I then use this cell to create the range, update the range with the constant, and then revert the temporary cell to a blank.