Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to access the text selection when user is editing cell


I have a big problem:

How can I access the text and its selection when a user is editing the
content of a cell?

I can access text easily when cell is only selected. But when a user is
typing sth I cannot access the Cell via ActiveCell anymore. So I cannot
track the text this way.

I even need it more detailed since I would like to gather information
about the text selection a user can make when editing a cell.

Does the Excel Object Model has some Object for this?

Thanks in advance!


--
Buergermeister


------------------------------------------------------------------------
Buergermeister's Profile: http://www.excelforum.com/member.php...o&userid=34150
View this thread: http://www.excelforum.com/showthread...hreadid=539192

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default How to access the text selection when user is editing cell

Hi
You can access the contents of the cell after the user has finished
typing by using the Worksheet_Change or Worksheet_SelectionChange subs
of the worksheet.
I don't think there is an event which would fire as the user is typing.
This is probably fair enough, as a macro firing every time you hit the
keypad would drive the user nuts, and nobody would speak to you at
coffee.

regards
Paul

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default How to access the text selection when user is editing cell

Hi,

sorry, not supported in Excel.

There are ways around this, but as far as I know none of them works
reliably. Excel is very likely to crash.

But maybe worksheet_change is what you are looking for. This event
fires whenever worksheet (cell or range) is changed.

Regards,
Ivan

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How to access the text selection when user is editing cell

for all practical purposes, Excel macros don't run when a user is editing a
cell.

--
Regards,
Tom Ogilvy


"Buergermeister" wrote:


I have a big problem:

How can I access the text and its selection when a user is editing the
content of a cell?

I can access text easily when cell is only selected. But when a user is
typing sth I cannot access the Cell via ActiveCell anymore. So I cannot
track the text this way.

I even need it more detailed since I would like to gather information
about the text selection a user can make when editing a cell.

Does the Excel Object Model has some Object for this?

Thanks in advance!


--
Buergermeister


------------------------------------------------------------------------
Buergermeister's Profile: http://www.excelforum.com/member.php...o&userid=34150
View this thread: http://www.excelforum.com/showthread...hreadid=539192


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to access the text selection when user is editing cell


well actually i don't want to write a macro but an external application
that needs to know which content is selected to output this on a
special device for visually impaired people.

but if there is no way to access this via the excel object model there
i need to look for another solution.

If someone knows another workaround I would be glad to hear about it
:D

thanks for all the replies.


--
Buergermeister


------------------------------------------------------------------------
Buergermeister's Profile: http://www.excelforum.com/member.php...o&userid=34150
View this thread: http://www.excelforum.com/showthread...hreadid=539192



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How to access the text selection when user is editing cell

I think your search would be in the area of subclassing Excel and getting
between Excel and the windows operating system.

--
Regards,
Tom Ogilvy


"Buergermeister" wrote:


well actually i don't want to write a macro but an external application
that needs to know which content is selected to output this on a
special device for visually impaired people.

but if there is no way to access this via the excel object model there
i need to look for another solution.

If someone knows another workaround I would be glad to hear about it
:D

thanks for all the replies.


--
Buergermeister


------------------------------------------------------------------------
Buergermeister's Profile: http://www.excelforum.com/member.php...o&userid=34150
View this thread: http://www.excelforum.com/showthread...hreadid=539192


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
Why does editing a formula cause cell to reformat to text? Jack Greb Excel Discussion (Misc queries) 2 January 25th 08 01:56 AM
Why does the cell I'm editing put the text on the right side? Kate Mars Excel Discussion (Misc queries) 1 September 10th 05 12:18 AM
Possible too - ADD Text While editing a cell thom hoyle Excel Programming 3 June 11th 05 06:44 PM
Userform Editing/Access John Baker Excel Programming 1 October 9th 04 09:46 AM
Editing text within a cell David Excel Programming 4 April 23rd 04 02:32 AM


All times are GMT +1. The time now is 06:06 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"