usrfrm initialize

Hello!

I want to: Show a number/text in a textbox in a userform when the userform is opened/initialized. I have a userform and a textbox but the textbox is blank when the userform is initialized. pls help me!

I simplyfied my code to :

Sub UserForm1_Initialize()
Me.TextBox1.Text = "Hello World!"
End Sub

but that did not work...is it possible to do what I want If not, any tips .pls help me!



Answer this question

usrfrm initialize

  • NailSR

    Try putting the code in a UserForm1_Activate handler instead of in UserForm1_Initialize.



  • usrfrm initialize