Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Range Selection with Arrows Keys

I was trying to record a selection using the arrow keys. Suchs as:

Start at Cell A1
Hold Shift end, Hit end, Hit Arrow Down, Hit end, Hit Arrow Down
Then hit End and right arrow twice.

How do I do this with VB code. I can not find anyting in help.

Thanks in advance for any help!!!

Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Range Selection with Arrows Keys

The method is to use from help is

Returns a Range object that represents the cell at the end of th
region that contains the source range. Equivalent to pressing END+U
ARROW, END+
DOWN ARROW, END+LEFT ARROW, or END+RIGHT ARROW. Read-only.

Syntax

expression.End(Direction)

expression Required. An expression that returns a Range object.

Direction Required Long. The direction in which to move. Can be on
of the following XlDirection constants: xlToLeft, xlToRight, xlUp, o
xlDown

--
Message posted from http://www.ExcelForum.com

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
Excel 2007 Chart Data Selection- Arrow Keys Frustration Kerry[_2_] Excel Worksheet Functions 0 April 7th 11 05:00 AM
showing dropdown selection arrows in spread sheets rongripon Excel Discussion (Misc queries) 2 June 12th 07 04:48 PM
Identifying a selection of a selection of a range swimfast Excel Worksheet Functions 1 March 1st 07 02:51 AM
Arrows move worksheet rather than cell selection, how fix? grenada49 Excel Worksheet Functions 3 May 17th 05 09:05 PM
Excel List range, filter arrows disappeared andrew Excel Discussion (Misc queries) 3 April 1st 05 11:30 PM


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