Thanks for the reply. But in the code i have given only one unit. i.e. A1-I1 is one unit. There are many such units like A2-I2, A3-I3. required formatted text is one below the other. i.e. A1-I1 occupies 6 lines, A2-I2 occupies from 4-l2 lines,and so on. How can I make the code repetitive for every unit. Thanks in advance