'Exit Property' is not valid in a Function or Sub
Exit Property appears in a Function procedure or a Sub procedure. An Exit statement must match the block in which it occurs.
Error ID: BC30066
To correct this error
- Replace the Exit Property with the Exit Function or Exit Sub statement as appropriate.