ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Todd Huttenstine (https://www.excelbanter.com/excel-programming/288455-todd-huttenstine.html)

Todd Huttenstine[_2_]

Todd Huttenstine
 
what is the code to select all the text in a textbox?

Thank you

Todd Huttenstine

Chip Pearson

Todd Huttenstine
 
Todd,

Try

With Me.TextBox1
.SelStart = 0
.SelLength = Len(.Text)
End With


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Todd Huttenstine" wrote in
message ...
what is the code to select all the text in a textbox?

Thank you

Todd Huttenstine





All times are GMT +1. The time now is 09:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com