In terms of the coding, the following is a little program I wrote when I first started experimenting with this. It's probably the simplest way of doing things, but will serve as a good starting point.
I'm not sure what I'm supposed to see here. When I keep the original code, the yellow bar is choppy and looks terrible. When I comment out the While and Wend lines, keeping what was in between, it runs beautifully.