danovkos
09-27-2011, 05:59 AM
Hi all,
pls. i tried all what i found on net, but nothinghs works.
I try to after clicking on my textbox select/highlight all text in textbox.
I have place this code in Private Sub DovodOM1_click() but after clicking it doesnt call this sub. I know, it because i mark first line of this private sub in debugger with stop(braun circle - i dont know how it calls) and it doesnt call it.
With DovodOM1
.SelStart = 0
.SelLength = 500
EnterFieldBehavior = fmEnterFieldBehaviorSelectAll
End With
This is only part of my big code. In first part i assign to my textbox with name DovodOM1 value. It is a text. Then after clicking on buttons appears my userform. In userform is this textbox, but when i click on my textbox do nothing. Only editing is possible without highlighting text in textbox.
Also i tried insert this code in change Sub, but it doesnt works as i want. If is code there (in change) i can write only first letter.
any suggestions?
thx
pls. i tried all what i found on net, but nothinghs works.
I try to after clicking on my textbox select/highlight all text in textbox.
I have place this code in Private Sub DovodOM1_click() but after clicking it doesnt call this sub. I know, it because i mark first line of this private sub in debugger with stop(braun circle - i dont know how it calls) and it doesnt call it.
With DovodOM1
.SelStart = 0
.SelLength = 500
EnterFieldBehavior = fmEnterFieldBehaviorSelectAll
End With
This is only part of my big code. In first part i assign to my textbox with name DovodOM1 value. It is a text. Then after clicking on buttons appears my userform. In userform is this textbox, but when i click on my textbox do nothing. Only editing is possible without highlighting text in textbox.
Also i tried insert this code in change Sub, but it doesnt works as i want. If is code there (in change) i can write only first letter.
any suggestions?
thx