by D. McDonald (1 Submission)
Category: Files/File Controls/Input/Output
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
Easy way to convert between file document types. Must have MS Office on your system. If you have office 2007+ you can obtain a free MS plugin for further types of documents making it possible for this code to be adapted to convert to .pdf and others. No votes as code is adapted from code I found somewhere.
Inputs
Input path of file document to be converted.
Assumes
Add a reference to 'Microsoft Word x.x Object Library'
Code Returns
File document of type specified as output.
Download Convert documents between .doc .rtf .htm .txt (3 KB)