I have
The sub (parsed down for brevity) is called whenever a button click event occurs within a userform. I have many userforms where this sub could conceivably be called when a date picker button is clicked. I know I could just rewrite the routine to Sub 1, Sub 2, Sub 3, etc. and reference those as Call Sub1, Call Sub2, etc. but I'm more interested in how I can make this If statement reference whatever form the sub is being called from, and have the variable declaration for the control within the click event suchas:Please Login or Register to view this content.
In Userform(n):
In Sub1 in standard (class?) module:Please Login or Register to view this content.
Please Login or Register to view this content.
Bookmarks