I need VB code to convert an MS Doc file to text. I have written something like what is below, but it is too amateurish. It has problems like locking up, and showing the Word, which I don't want, and I can't make it save as text.
I need a command-line executable, compiled in VB. Who could help?
Dim wdApp As Object
Set wdApp = New Word.Application
Dim fileName As String
Dim doc As Word.Document
inFileName = "file.doc"
Set doc = wdApp.Documents.Open(inFileName)
Dim outFileName As String
doc.SaveAs (fileName = outFileName)