View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
vqthomf vqthomf is offline
external usenet poster
 
Posts: 104
Default Selecting part text in a textbox

I tried to doing it like this but I still can get it to select the text, if
the user enters let say more than 5 digits I want to highlight the extra
digits to give the user a chance to view or delete it.
Regards
Charles

"Harald Staff" wrote:

Hi Charles

With TextBox1
.Text = "Harald says cool, man"
.SelStart = 12
.SelLength = 4
End With

HTH. best wishes Harald

"vqthomf" skrev i melding
...
Hi I have been trying to select a part of a text entry into a textbox, I
tried to use selstart etc I can remove the text but not hightlight it can
someone show me how this can be done.
TIA
Charles