D
David
I use the following to initialize a userform:
Private Sub UserForm_Initialize()
With Me.TextBox1
..Text = "<store name>"
..SelStart = 0
..SelLength = Len(.Text)
End With
End Sub
Then macro code to accept input:
UserForm1.Caption = "Payee 1"
UserForm1.Show
Payee1 = Application.Proper(UserForm1.TextBox1.Text): If Payee1 = "" Then
Exit Sub
Unload UserForm1
Problem is that on subsequent calls, I'm presented with the last store name
instead of the form reinitializing.
How can I correct this?
Private Sub UserForm_Initialize()
With Me.TextBox1
..Text = "<store name>"
..SelStart = 0
..SelLength = Len(.Text)
End With
End Sub
Then macro code to accept input:
UserForm1.Caption = "Payee 1"
UserForm1.Show
Payee1 = Application.Proper(UserForm1.TextBox1.Text): If Payee1 = "" Then
Exit Sub
Unload UserForm1
Problem is that on subsequent calls, I'm presented with the last store name
instead of the form reinitializing.
How can I correct this?