It's not that I can call the function without parentheses. It's that I must call it without parentheses when I add a title argument. Why? That doesn't make sense to me. Trying to understand why VBA has this nuance or if it's a bug in the compiler/language itself.
Also, with the If-Else block, I had multiple ElseIf statements, but only the first one caused a compile error until I separated the first If statement onto 2 lines. The remaining ElseIf statements are all on one line and don't cause any errors. Again, very strange behavior.
Hi WCZH.
If you call a Function with parentheses you MUST specify a variable (or control) to assign the result to.
For the second part it is important to see all the lines in the If-Else block, becuase the exact punctuation becomes important.
Perhaps I am - after some 40 years - used to how to prevent compile errors in If-Else constructions, but I don't experience it as strange behaviour.
The important thing is to write the instructions so that the compiler can unambiguous interpret the lines.
Imb.