Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code for Arrow keys


Hi, :)

Can anyone tell me the code for the arrow keys.
i.e, If i need to move the arrow key, what is the code generated.

To be more clear, I create a macro, when I use the arrow down key, it
selects the cell like "A2" (In the code it selects the physical
location as A2). I do not want that. Suppose I use a down arrow key, it
should not select the cell but as well should take anything below the
specified cell. (This is to be used when cell is not clear while
programming.)

So, clearly, I need the code for the arrow keys.

This is the code which I get when used down arrow key.

Sub Pravi()
Range("A2").Select
End Sub


Please help.
Thanks,
Praveen.


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile: http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=504579

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Code for Arrow keys

ActiveCell.End(xldown).Select

--
Regards,
Tom Ogilvy


"praveen_khm"
wrote in message
...

Hi, :)

Can anyone tell me the code for the arrow keys.
i.e, If i need to move the arrow key, what is the code generated.

To be more clear, I create a macro, when I use the arrow down key, it
selects the cell like "A2" (In the code it selects the physical
location as A2). I do not want that. Suppose I use a down arrow key, it
should not select the cell but as well should take anything below the
specified cell. (This is to be used when cell is not clear while
programming.)

So, clearly, I need the code for the arrow keys.

This is the code which I get when used down arrow key.

Sub Pravi()
Range("A2").Select
End Sub


Please help.
Thanks,
Praveen.


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile:

http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=504579



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code for Arrow keys


Thanks Tom :)


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile: http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=504579

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
Arrow Keys Terry Excel Discussion (Misc queries) 1 April 21st 10 03:12 PM
Using arrow keys DL Excel Discussion (Misc queries) 4 November 10th 08 06:46 PM
Arrow Keys Tim Excel Discussion (Misc queries) 1 January 24th 08 06:10 PM
Arrow keys Kim Excel Discussion (Misc queries) 2 March 21st 05 09:02 PM
arrow keys Dean Excel Discussion (Misc queries) 1 February 14th 05 02:29 PM


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