>>>>Add following code after the last ENDFOR
>>>
>>>Change
.Height = 20 * 16
>>>>* to
>>>>.Height = 20 * 17
>>>
>>>What would that be needed for?
>>
>>To see 17th row on the form with gray scale colors.
>
>This is done after the file has been generated. So, it doesn't help.
The code in the message generates HTML table with 16 columns and 17 rows. Your code generates table with 8 columns and 28 rows. 6 rows are missing.
--sb--