View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default Highlight text in textboxes

With TextBox1
.SelStart = 1
.SelLength = Len(.Text)
.SetFocus
End With

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Frederick Chow" wrote in message
...
Hi all,

A simple question: How can I programmatcially highlight text in a textbox?
Textbox.SetFocus doesn't work. Thanks for your advcie in advance.

Frederick Chow