I wonder whether someone can help me please.
I wanting to use this solution in a script I\'m trying to put together, but I\'m a little unsure about how to make a change
Miguel provided a fantastic solution which on initial testing appeared to work 100%. But as you will see from the comments at the end of the post there were some issues when the user cancelled the operation, so I made another post at this link where the problems were ironed out. Many thanks and kind regards. Chris