No worries, I am glad it helped you out.
I tweaked the code to allow you to set an AllDay event.
Iain