Create, Edit, Save, and Close Word Documents
Category:
Office/VBAType:
ApplicationsDifficulty:
BeginningAuthor:
EthanVersion Compatibility: Visual Basic 6
More information:
This demo illustrates how to create, edit, and close a Word document from VB6. It requires a reference to the Microsoft's Word 8.0 (or above) Object Library. The code creates, formats the
document then shows how to pass it a recordset (Array). Currently it displays word, but if you comment out the
show and uncomment the save and quit code (putting in your own default save file name and path) it will do the whole process and save the document to the file, invisibly.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.
Download createwd.zip