I corrected the range but the same error occurs. Icreated a smaller array and module to try and isolate the problem andset the range wrongly at that point. When I step through the module,the error occurs on the first pass i.e. when col=3.