Posted on 2003-11-21
I want to insert *.txt file to word document using VBA without ConfirmConversions
Selection.InsertFile FileName:="a2.txt", ConfirmConversions:=false
The problem is: Word sometimes interprets txt file (with txt extension) as HTML document.
For example, if file wherever contain string "<table>" word will interpred file as HTML (no matter that file is without </table> <html>, but if file contains <h2> gfghjfjreeee </h2> it is interpreted as text.)
So, I want to force Word to interprete any file with .txt extension as text without using ConfirmConversions:=true.