ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I get cursor position and text being typed? (https://www.excelbanter.com/excel-programming/291897-how-do-i-get-cursor-position-text-being-typed.html)

Kallepalle

How do I get cursor position and text being typed?
 
Hi,

How do I retrieve the current text being entered in a cell and the
cursor position. NB: I am /not/ looking for the contents of the
current cell - I am looking for the text in teh edit box where
contents of a cell are displayed for editing and/or input.

Sincerely,
Anders S. Johansen

Chip Pearson

How do I get cursor position and text being typed?
 
Anders,

VBA doesn't execute when you are in Edit Mode, so there is no way
to do this.


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



"Kallepalle" wrote in message
om...
Hi,

How do I retrieve the current text being entered in a cell and

the
cursor position. NB: I am /not/ looking for the contents of the
current cell - I am looking for the text in teh edit box where
contents of a cell are displayed for editing and/or input.

Sincerely,
Anders S. Johansen




Anders Johansen

How do I get cursor position and text being typed?
 


Oh, it doesn't have to be from VBA. We are talking from an external
program, written in C++. It could be through OLE/COM, Windows messages,
MSAA...

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT +1. The time now is 06:52 PM.

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