Practical Example
The PETRAS application files for this chapter can be found on the CD in the folder \Application\Ch11Interfaces and include the following files:PetrasTemplate.xlt
The timesheet templatePetrasAddin.xla
The timesheet data-entry support add-inPetrasReporting.xla
The main reporting applicationPetrasConsolidation.xlt
A template to use for new results workbooksDebug.ini
A dummy file that tells the application to run in debug modePetrasIcon.ico
An icon file, to use for Excel''s main window
PETRAS Timesheet
The PETRAS timesheet add-in has not been updated for this chapter.
PETRAS Reporting
At this stage in the development of the application, it would be artificial to add a suite of userforms, just so we could demonstrate the implementation of a plug-in architecture. However, such a suite of forms will be added to the application in Chapter 13 Programming with Databases for maintenance of the static lists of Consultants, Clients, Projects and so forth.For this chapter, we will modify the progress bar handling to display the consolidation progress unobtrusively in the status bar if we''re consolidating fewer than ten timesheet workbooks, but pop up a cancelable progress bar userform if consolidating ten or more timesheets. As such, we''ll be including the IProgressBar interface from Listing 11-15, the FProgressBar form from Listing 11-16 and the CProgressBar class from Listing 11-17. In this example, the form has an extra Cancel button and the interface has been enhanced to add a Cancelled property, set to True when the Cancel button is clicked. The code changes required for this enhancement are detailed in Chapter 11
