Hey Paul,
Monday was a holiday here in the U.S.
The code you emailed us was mostly correct. There were some problems. For instance, TA_HAS_NOT_EXPIRED is defined in both the VBA module and VB6 module.
We'll add those functions with the error codes in TA 4.0 release.