Great. I have the code in code tags in colour. Nice!
(Thanks to Peter_SS at MrExcel for help in this one)