#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default enter key

What do you test for if enter key only has been used to move on to another
cell?
testing for "" only seems to work if "delete" has been used in the cell.

regards
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default enter key

I think you are going to have to provide more details about what it is you
want do.

--
Rick (MVP - Excel)


"johnsail" wrote in message
...
What do you test for if enter key only has been used to move on to another
cell?
testing for "" only seems to work if "delete" has been used in the cell.

regards


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default enter key


What specifically do you want to test for? That the Enter key (as
opposed to, say, the mouse) was used to select the active cell? If
you're referring to worksheet events, Change is called with a cell
value is changed (by the user or by VBA, but not by calculation), and
SelectionChange is called when the user changes which cells are
selected (but there is no way to determine specifically how the cell
was selected).

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Sun, 6 Sep 2009 04:49:01 -0700, john sail
wrote:

What do you test for if enter key only has been used to move on to another
cell?
testing for "" only seems to work if "delete" has been used in the cell.

regards

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
Macro to select cells in column enter data then press enter NP New Users to Excel 1 February 20th 08 04:21 PM
Enter multiple numbers in a cell so total shows when enter keypres newbie Excel Worksheet Functions 2 August 19th 07 12:23 PM
Enter info in one sheet, auto enter in another based on one field The BusyHighLighter[_2_] New Users to Excel 1 August 1st 07 10:54 PM
Enter data and press enter to move to specific cell Programing problem[_2_] Excel Programming 2 January 10th 07 03:35 AM
What does hitting Ctrl + Shift + Enter to enter a formula do??? Help a n00b out. qwopzxnm Excel Worksheet Functions 2 October 20th 05 09:06 PM


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

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

About Us

"It's about Microsoft Excel"