The culprit was found!The expression: Cells(row, 2) was called with row=0.For some obscure reason the error trapping started to work only after I closedexcel and re-invoked it.