Hi "im kind of new with excel VBA. I'm trying to do something simple as creating a USERFORM1 in VBA and showing it when workbook opens. I've looked it up online but for some reason something is not working.
I open excel, go to developer, create a userform1, add some stuff to it.
I open code for THISWORKBOOK and under Open procedure I type
Private Sub Workbook_Open()
UserForm1.Show
End Sub
Then I save it as Macro Enabled and when i open it, nothing happens. What is going on? I know this is a silly question but am i doing something wrong?
Userform1.Show- then run it using F5. Also - make sure it's actually in the file you saved - if you open the file (.xlsm extension) is it actually in your code? You have to open the file that ends in .xlsmCTRL+Gin the VB Editor), typeUserForm1.Show. It should pop up for you. If it doesn't let us know.