Excel Vba Type Mismatch Error Handling In C