Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Highlighting text in text box

Using SetFocus to have the cursor located in a text box each time, what
is the code to have the default text highlighted ready for a new entry
without first having to block or delete the existing textbox contents?

Craig Wilks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Highlighting text in text box

Hi,

Set the enterfield behaviuor:

..EnterFieldBehavior = fmEnterFieldBehaviorSelectAll

Then use SetFocus to set the focus to it.

Regards,

Jan Karel Pieterse
Excel TA/MVP

-----Original Message-----
Using SetFocus to have the cursor located in a text box

each time, what
is the code to have the default text highlighted ready

for a new entry
without first having to block or delete the existing

textbox contents?

Craig Wilks

*** Sent via Developersdex http://www.developersdex.com

***
Don't just participate in USENET...get rewarded for it!
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlighting a block of text within a cell PSULionRP Excel Discussion (Misc queries) 3 August 18th 09 03:31 PM
highlighting text ganga Excel Discussion (Misc queries) 3 June 28th 09 07:30 PM
highlighting text ganga Excel Discussion (Misc queries) 3 June 26th 09 05:51 PM
Highlighting Text within Cell OutlanderRaven Excel Discussion (Misc queries) 4 July 29th 08 06:53 PM
Highlighting cells with a certain text ladybugathena Excel Discussion (Misc queries) 1 May 23rd 07 10:53 PM


All times are GMT +1. The time now is 09:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"