
Originally Posted by
Leith Ross
Hello SuitedAces,
These are indeed arguments. They are return values supplied by the event procedure. In this case, a Mouse Event. You can use these return values in your code to further refine the code operation. Button will identify which mouse button was clicked when the event was triggered. Shift will return a code that tells you which combination of keys (SHIFT, CTRL, and ALT) were pressed when the mouse was clicked.
Arguments can be passed in two ways: ByVal, or ByRef. If ByRef is the default in VBA. This simply passes the address of the object as an argument. ByVal passes the entire object. I won't go into the "why" as it would require its own post to explain.
Sincerely,
Leith Ross
Bookmarks