Again guys, thank you for your suggestions. But finally I gave up using itemoffset and worked with arrays instead, which is much much faster : my script processes the 60000 variables in less than 15 secs.