Heh, I just took what you had and played with it a bit. took me a couple tries to figure out that it doesn't like wrapping XLS statements around <td> blocks, but by looking at your code I figured it out.. Don't sell yourself short, all I know about XLS I learned from looking at your code..