lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I created simple form (2 text boxes+ 3 cmd buttons). I wrote a code to show the form (no problem) an wrote another sub to initialized the form (not sure how important is that but I read somewhere that I need to do that). I put both sub in the same Module. I read that the UserForm_Intialize() should be called automatically after finishing sub callingform() but that did not happen to me. I stepped over the code but it will not move beyond End sub of Callingform() . Any help would be very much appreciated. Thanks
Sub callingform()
myform.show
End Sub
Sub UserForm_Intialize()
first.value="john"
second.value="smith"
End Sub
I created simple form (2 text boxes+ 3 cmd buttons). I wrote a code to show the form (no problem) an wrote another sub to initialized the form (not sure how important is that but I read somewhere that I need to do that). I put both sub in the same Module. I read that the UserForm_Intialize() should be called automatically after finishing sub callingform() but that did not happen to me. I stepped over the code but it will not move beyond End sub of Callingform() . Any help would be very much appreciated. Thanks
Sub callingform()
myform.show
End Sub
Sub UserForm_Intialize()
first.value="john"
second.value="smith"
End Sub