Thanks Admin but same results as my code. File is written to my desktop but it wont open.