LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default Enter Command



"Lil Pun" wrote:

I need 'Enter' to be sent because it needs to be done automatically and
not manually by keystroke. The program will place a 1 into the
specified cell (A50) and then the program needs to act as if 'Enter'
has been pushed so that the cursor then moves to cell C2, which is the
way the program is setup right now but it doesn't have a function to
'Enter' when a 1 is present in the cell.

So will your suggestion not work? Thanks!


As I said: no, it will not. But by all means, try the suggestion before you
discard it -- stranger things have happened... :o)

Frankly, I see no viable way to achieve what you're asking for -- AFAIK,
Excel does not expose the events required to listen for e.g. cell entry, and
it doesn't send change events for each character entered in a cell (not for
worksheet cells, that is). Maybe you could listen for Selection Change
events, and see if cell A50 becomes selected, but then what? Hmmm, the future
doesn't look bright...

If you're owning the code base for the ActiveX control putting "1" in cell
A50, I suggest you go in and patch the control instead, and make sure it does
what it's intended to do. That would probably be the easiest way of solving
the problem, and you would avoid trying to jump through hoops in Excel (which
seems to be neither easy nor possible?)

Cheers,
/MP

--
Lil Pun
------------------------------------------------------------------------
Lil Pun's Profile: http://www.excelforum.com/member.php...o&userid=33840
View this thread: http://www.excelforum.com/showthread...hreadid=549138


 
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
Lock Cell After Enter Command DOUG Excel Discussion (Misc queries) 5 March 2nd 09 06:18 PM
Using command buttons to enter data Nick T Excel Discussion (Misc queries) 1 January 12th 07 02:20 PM
Why does the error pop up- can't enter command mode? Thief_ Excel Programming 0 April 7th 05 06:43 AM
how do i enter data using formula and the Copy command For exa. 5494 New Users to Excel 0 January 28th 05 05:55 AM
Run command when hitting ENTER on list box item Mr. Smith Excel Programming 1 October 28th 03 01:13 AM


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