Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Using up, dwn, end, right, left in vb programming

I would like to set a print area using the arrow keys. If I turn on the
macro recorder it dows not show how the keys sequences are created.

What is the vb code to start at cell A10 and range select end down, end
right then right once?

Thank you for your help in advance!!! (smile) I;m in a real bind....

Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Using up, dwn, end, right, left in vb programming

Mike,

Try this:

range(range("A10"), range("A10").end(xlDown)).resize(,2).Select

John

"Michael Kintner" wrote in message
...
I would like to set a print area using the arrow keys. If I turn on the
macro recorder it dows not show how the keys sequences are created.

What is the vb code to start at cell A10 and range select end down, end
right then right once?

Thank you for your help in advance!!! (smile) I;m in a real bind....

Mike




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Using up, dwn, end, right, left in vb programming

Mike,

After re-reading your post, I think that this may do what you want:

range(range("A10").End(xlToRight).Offset(0,1),
range("A10").end(xlDown)).Select

John

"John Wilson" wrote in message
...
Mike,

Try this:

range(range("A10"), range("A10").end(xlDown)).resize(,2).Select

John

"Michael Kintner" wrote in message
...
I would like to set a print area using the arrow keys. If I turn on the
macro recorder it dows not show how the keys sequences are created.

What is the vb code to start at cell A10 and range select end down, end
right then right once?

Thank you for your help in advance!!! (smile) I;m in a real bind....

Mike






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Using up, dwn, end, right, left in vb programming

Still having problems, how do I do two end downs?

"John Wilson" wrote in message
...
Mike,

Try this:

range(range("A10"), range("A10").end(xlDown)).resize(,2).Select

John

"Michael Kintner" wrote in message
...
I would like to set a print area using the arrow keys. If I turn on the
macro recorder it dows not show how the keys sequences are created.

What is the vb code to start at cell A10 and range select end down, end
right then right once?

Thank you for your help in advance!!! (smile) I;m in a real bind....

Mike






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Using up, dwn, end, right, left in vb programming

Michael,

How is your data set up?
The End(xlDown) should get you to the last non blank cell under A10.
Is there more information below that (skipping a row)???

maybe this will work (all one line):
range(range("A10").End(xlToRight).Offset(0,1), range("A" &
rows.count).end(xlup)).Select
The above will select Range A10 down to the very last non blank cell in
column "A"
and one column to the right of the last non blank cell in Row 10.

John

"Michael Kintner" wrote in message
...
Still having problems, how do I do two end downs?

"John Wilson" wrote in message
...
Mike,

Try this:

range(range("A10"), range("A10").end(xlDown)).resize(,2).Select

John

"Michael Kintner" wrote in message
...
I would like to set a print area using the arrow keys. If I turn on

the
macro recorder it dows not show how the keys sequences are created.

What is the vb code to start at cell A10 and range select end down,

end
right then right once?

Thank you for your help in advance!!! (smile) I;m in a real bind....

Mike








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
LEFT function-all to left of a comma? Jennifer F Excel Worksheet Functions 1 January 21st 09 11:19 PM
when inserting new worksheets they read right to left not left to. Andy Setting up and Configuration of Excel 2 December 3rd 08 09:51 PM
My Excel view is Right to Left instead of Left to Right !!! Akash Puri Excel Discussion (Misc queries) 2 May 5th 08 07:15 PM
Column labels run right to left, not left to right tmassey Excel Discussion (Misc queries) 1 November 10th 06 11:03 AM
How to change the right-to-left worksheet to left-to-right workshe RAMA Excel Discussion (Misc queries) 1 July 4th 05 01:57 PM


All times are GMT +1. The time now is 07:38 AM.

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"