Thanks learnt something new. I used to loop through array with For....Next.