Hello dsonesuk,
Thank's for your reply. I attached a screenshot of a sample table from my document. It has five columns - the first (counted from left) contains placeholders for images, the four others text and numbers. The screenshot shows that the script is applied to the second last column when running the 'select' command for example. The assignment to the correct column already works:
curTable.columns[-2].select(); //select the cells in the column
I hope I didn't get you wrong but I don't understand why you think there is an index problem. I'm able to execute the commands I li