Not much I can do about it I'm afraid, it must be your system resources. I just ran the code on 1033 rows x 111 columns of data and it ran ok (took a little while)