Hi!
I have this boolean function:
which is used to determin whether the date d1 is is a national holiday. This function works well when using it from a test-sub in the same module:![]()
Please Login or Register to view this content.
But, when I try to use it from within a userform, I get the error message "Compile error: ByRef argument type mismatch". The code I use in the userform is (extract):![]()
Please Login or Register to view this content.
What can be the reason for this? The d1 variable is declared as date both places...![]()
Please Login or Register to view this content.
Thx in advance for any help!
Bookmarks