Thanks Coothead.
I had already resolved this issue a while back. However, this code will be very useful for another project I am working on.

Cheers,
MizPippz