Thanks for your reply. Well for last row the assumption is that because the 12th row is the last one that has descriptions of each field the netering of the client details would start from that 12th row, but it doesnt work actually the whole script doesnt work.