Hi K.F,
I am sorry that I cannot find the screenshot. You may forget to upload it.
I guess the error is caused by:
plotxy iy:=[Book1]!(1,$(nn$(ii)+3)) plot:=200;
For example, if I set nn3 = 20, the script above will create a plot with column(1) and column(23). If column(23) doesn’t exist in the active worksheet, an error message will pop up.
BTW, I think checkbox is a better option. For example:
getn
(column1) nn1:2
(column2) nn2:2
(Which column would you like to plot ?);
Hope it helops.
Regards,
Yuki
OriginLab