LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Chip Pearson
 
Posts: n/a
Default Shift and Arrow Key Code

Try

Range(ActiveCell, ActiveCell.End(xlDown)).Select


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




"strung"
wrote in message
...

Chip Pearson Try
ActiveCell.Resize(num_rows,num_columns).Select

I don't understand where I can put the 33 cells I need to copy
------------------------------------------------------------------------------
bpeltzer
Range(Selection, Selection.Offset(0, 1)).Select 'shift-right.

The line of code goes to Red and won't work.
------------------------------------------------------------------------------
The issue is this,
The macro does a Find for a particular word in the worksheet.
That particular word (Text) is the title of what the contents
are in
each of the 33 cells below it.
But it (Title) does not always start in the same cell, so I
can't use
the Cell Range code constantly.


Once I Find the Title, then I would normaly do a Shift
_Arrow-Key_Down
and then copy the entire contents of those 33 Cells, manually.
That's why I cannot use a Cell Range code.

So it's basicaly: Macro finds the Title,
Then: Selection.Offset(1, 0).Select '*Down*
Then: Select the entire cell range below the title to Copy
I can make it do everything except select the entire range of
upto 33
Cells below Title.


Example.
Title
1
2
3
4
5
6
7
8
9
10
11
12
13
14

Hope this makes sense


--
strung
------------------------------------------------------------------------
strung's Profile:
http://www.excelforum.com/member.php...o&userid=24731
View this thread:
http://www.excelforum.com/showthread...hreadid=479980





 
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
how to use shift and down arrow keys in a macro? John W Excel Worksheet Functions 1 July 31st 05 01:21 AM
arrow keys move screen but not curser JReiss Excel Discussion (Misc queries) 1 April 21st 05 03:22 PM


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