Vbscript / Ms Office / Read Word Document
Open an MS Word document and loop though the words as string variables.
strDocPath = "C: est.doc" Set objWord = CreateObject("Word.Application")' Display the application. objWord.Visible = TRUE Set objDoc = objWord.Documents.Open(strDocPath) Set colWords = objDoc.Words 'Loop through words in document For Each strWord in colWords Wscript.Echo strWord Next
Please note that a disclaimer applies to any code on this page.
|