If you have not found a resolution to this. I think I know what's causing it. I encountered something similiar when using string command's within VBA. It was caused by having a missing reference on the database. Go into the VBA editor, select tool, then references. Make sure you have no references marked as MISSING.
HTH
Cal