I just started testing the waters with VBA in excel and I'm having trouble with a very basic custom class. The code worked when the class property was public and I could access it without get/set functions. However, when I switched to a private class property and added the get/set functions to access the private property I get this error:
Compile Error: Expected: identifier or bracketed expression
This is the class module:
As soon as I type the period after prevEvent and try to select the property from the menu that pops up I get the error. What am I doing wrong? I am following every tutorial I can find on this basic issue.
Thanks in advance.
Bookmarks