Is the code in your original post all there is? If not, can you post the full script so we can help to find the error. It looks like the issue is caused by another line in the script.

Edit: Hmmm....that’s what you get for starting a phone call when typing a reply. Arend beat me to it.


Edited by Mart (2016-12-14 11:46 AM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.