I hope this question is not too trivial as I am new to VBA.
I want to make a label in a userform show data from a cell on a worksheet. The label should show this data directly when the userform opens.
This thread probably gives me the answer:
In an Excel UserForm, how do I update a label's caption?
However I am confused regarding WHERE to put this code?!
Should I put it into the Userform directly? -> this would make the most sense to me but does not work, as the code is not even executed then. Should I create a new module for this code? -> then how do I call this sub automatically after the userform opens?
Thanks alot in advance! Leo