I like how every single element of the solution was right here in this comment thread over an hour ago. For the record, unchecking that box changes absolutely nothing about the file's structure, only how Notepad
represents the data in the file. A file is not its data, data is not a file, and whether you open a file in Notepad, Wordpad, Notepad++, or by coding it in VBA, the file's content is always the same regardless. Also for the record, you shouldn't be hard-coding file handles like this. Use the
FreeFile
function to let VBA give you a usable file handle instead. —
Mathieu Guindon 8 secs ago