Prevost
Board Regular
- Joined
- Jan 23, 2014
- Messages
- 198
Hi There. Is there a way to control what happens when a button is clicked under the userform_initialize event? I am not sure I understand the hierarchy of how to properly create a Userform. I have public variables declared in a module and need to use those values in the dropdown box menu, but I do not want to have a bunch of bricks of code such as CommandButton1_Click() or TextBox1_Change() that each declare their own varibles based on the public variables (as I will end up repeating myself in the userform events).
Thanks!
Thanks!
Code:
Private Sub UserForm_Initialize()
'code here to declare variables
Load values into combobox dropdown list 'this is what I am unsure about
When a button is clicked... 'this is what I am unsure about
'do this code
End Sub