The Main Application

Once we have the SubDocument class to take care of storing the data for each subdocument, we can turn our attention to the remainder of the project. The tasks required have all been covered in earlier chapters: opening an Excel workbook and reading information from specific cells, creating a new Word document, inserting files into the document, and so on. The code for the remainder of the application is presented in Listing 24.2. I have commented the code so you can follow along. However, for the most part, I think this code will all be familiar to you.

Listing 24.2. Code for the UpdatePolicyManual application.
 ' Module UpdatePolicyManual. ' Execute: Procedure UpdatePolicyManual ' Run in: Word ' Requires: Class module SubDocument ...

Get Office® XP Development with VBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.