Many thanks for posting this ingenious solution - overjoyed having got it to work late last night!!
However after publishing on my return to work this morning, the disappointment of it not being supported in a browser... :(
You mentioned that code could be used - what would I need to do to enable code?? Personally I am not permitted to use ...