You made an error in your code. According to VBA documentation: "The range 0-512 is reserved for system errors; " You should not have used 13 as error number for a custom error. - Nonetheless, I agree that the behavior is inconsistent on the Mac. What happens if you use an error number suitable for custom errors?
I know that range is for system reserved, but sometimes using that error number with a custom message resonates more. Instead of saying that there is a Type mismatch, I can say that we expect a long, but you have passed something different. That's why I kept 13. When I am running the same thing on the windows it is saying Custom Error even in the class module. Also, If you see the module example in the Mac version, then you will see that it is showing the custom description instead of a Type mismatch. So, it is more relevant to the class module and Mac issue than the error number. If I use VbObjectError then it just throws a runtime error with the description "Method RaiseCustomError' of object 'Class1' failed".
You made an error in your code. According to VBA documentation: "The range 0-512 is reserved for system errors; " You should not have used 13 as error number for a custom error. - Nonetheless, I agree that the behavior is inconsistent on the Mac. What happens if you use an error number suitable for custom errors?
I know that range is for system reserved, but sometimes using that error number with a custom message resonates more. Instead of saying that there is a Type mismatch, I can say that we expect a long, but you have passed something different. That's why I kept 13. When I am running the same thing on the windows it is saying Custom Error even in the class module. Also, If you see the module example in the Mac version, then you will see that it is showing the custom description instead of a Type mismatch. So, it is more relevant to the class module and Mac issue than the error number. If I use VbObjectError then it just throws a runtime error with the description "Method RaiseCustomError' of object 'Class1' failed".