I have my initialiser function within the userform "module" but when I go to assign a function to be called from my button, excel doesnt show the userform "module" functions being available.
How can I get my userform to display upon the press of a button from the spreadsheet?
double-click the button you have created and place the call to your macro in the code that displays
Private Sub CommandButton1_Click()
UserForm1.Show
End Sub
You need to cut/paste your code in to a worksheet macro: 1. select and cut your macro 2. double click on sheet1 (Microsoft Excel Objects) 3. paste 4. save Now you can run your macro
EDIT: Module if I remember correctly are reserved for OnAction
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With