B
ben
I have a userform with four text boxes. When a user activates the Enter event
for any text box my code places a certain value in that box. That part works
fine, however I want it to also select the text once it is entered
programmatically. THAT part does not work, no matter what I have seemed to
try.
Private Sub py4_Enter()
'Change text then....
with py4
..selstart = 0
..sellength = len(.text)
..setfocus
end with
end sub
even moving the setfocus or REmoving it helped none. Am I missing something
simple here?
for any text box my code places a certain value in that box. That part works
fine, however I want it to also select the text once it is entered
programmatically. THAT part does not work, no matter what I have seemed to
try.
Private Sub py4_Enter()
'Change text then....
with py4
..selstart = 0
..sellength = len(.text)
..setfocus
end with
end sub
even moving the setfocus or REmoving it helped none. Am I missing something
simple here?