#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default select

hi,

I have the following, which selects a range of cells across an Excel row:

obj.Sheets("Input").Visible = True
obj.Sheets("Input").Activate

obj.range("a265:m265").select


I need to know how I can simulate pressing the SHIFT, END, DOWN ARROW keys
to select down to the last row of entered data.

Thanks in advance,
geebee


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 179
Default select

try this one:

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

pls do rate

"geebee" wrote:

hi,

I have the following, which selects a range of cells across an Excel row:

obj.Sheets("Input").Visible = True
obj.Sheets("Input").Activate

obj.range("a265:m265").select


I need to know how I can simulate pressing the SHIFT, END, DOWN ARROW keys
to select down to the last row of entered data.

Thanks in advance,
geebee


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default select

hi,

here is what I have now. This is the code behind a button in ms access:

obj.Range("A265").Select
Range(Selection, Selection.End(xlToRight)).Select
Range("A265:m265").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents

I am getting an error message that says runtime error 424: object required.

Im not sure what to do.

Thanks in advance,
geebee


"Muhammed Rafeek M" wrote:

try this one:

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

pls do rate

"geebee" wrote:

hi,

I have the following, which selects a range of cells across an Excel row:

obj.Sheets("Input").Visible = True
obj.Sheets("Input").Activate

obj.range("a265:m265").select


I need to know how I can simulate pressing the SHIFT, END, DOWN ARROW keys
to select down to the last row of entered data.

Thanks in advance,
geebee


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
VBA: Column Select then Data Select then return to cell A1 James C[_2_] Excel Discussion (Misc queries) 3 February 1st 10 11:35 AM
Macro to select cells without a certain value and select a menu it Guy[_2_] Excel Worksheet Functions 9 January 2nd 09 05:21 PM
Using formulas to select cells (Ex: Select every nth cell in a col Lakeview Photographic Services Excel Discussion (Misc queries) 2 March 15th 07 02:17 PM
In Excel 2000, How do you select the whole of a worksheet (Select. Rascal Excel Discussion (Misc queries) 1 March 4th 05 11:59 PM
Select other workbook to select data in a macro. T Tromp Excel Programming 2 September 19th 03 01:43 PM


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