Or, for a slightly more human readable solution, which I tend to prefer:
me.activeCell.SelStart = 0
me.activeCell.SelLength = Len(me.activeCell.text)
- Tom
On 07/12/2006, at 10:17 PM, Jonathan Johnson wrote:
On Dec 7, 2006, at 5:14 AM, Harald Schneider wrote:
Hi,
is it possible to highlight all text inside an editable cell when
clicking into that cell? This would be useful to overwrite
existing content automatically.
Any thoughts?
In the ListBox.CellGotFocus event, add the two lines:
me.ActiveCell.SelStart = 0
me.ActiveCell.SelLength = &h7FFFFFFF
HTH,
Jon
--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>