Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert MS-Word to text.

Status
Not open for further replies.

DougAlthaus

Programmer
May 29, 2001
9
US
Does anyone know how to convert MS-Word to a text document.
 
Too many solutions to list...

You can copy the entire document and paste into notepad. You should try to record a macro(open docuemnt and perform a SaveAs to a text document). This will give you sample code.

You could also write code to read the entire document and output it to a text file. To get you started, just record a macro in Word (open the file, ctrl-home, Ctrl-A then Ctrl-C). This will give you code to start with. Then, just open a file for output and paste from the clipboard.

Have you started to develop any code to do this? If so, could you paste it here?
 
I have tried many different things, but I have had no success. I will give this a try. If I get it working I will let you know.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top