I am very new to VBA, and I wanted to perform the painfully simple task of returning a value from a function. After a lot of searching, the only way I've found to do it is like this:
I've been programming in a number of different languages for years, and never in my born days have I seen anything like that!!
And this gives "syntax error":
Please can someone explain why VBA works like that? Although it seems crazy, I am sure there's a logical reason for it. IME, there are usually logical explanations for things which, at first sight, seem nuts!
Bookmarks