Hi rayp,

Thanks for your response. Due to the functions I use, I need to do this using inkey.
I will try the method you suggested for different situations.

Kind regards