Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default Select range of cells in column AS based upon lastcell in col A.

Sub FindLastRow()

Dim lngLastRow As Long

' find last row in Column A
lngLastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row

Set rngMyRange = ActiveSheet.Range(Cells(9, "AS"), Cells(lngLastRow, "AS" ))

MsgBox rngMyRange.Address

End Sub

Hope this helps! If it does click "Yes" below.

Thanks,
--
Cheers,
Ryan


"jonnybrovo815" wrote:

I need to select a range starting from the active cell 9 in column AS and a
variable number of rows down based upon last entered cell in column A.

Does anyone know how to go about doing this?


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
Select Range based on column name and not A1 notations T.Vidak Excel Discussion (Misc queries) 3 July 16th 08 02:02 PM
Sum select cells based on date range Chad Excel Worksheet Functions 2 March 4th 08 06:21 PM
how can I select a range of cells based on a value of a cell? grigoras victor Excel Discussion (Misc queries) 1 June 26th 06 04:55 PM
How to select a range based on values in 1 column ForestRamsey Excel Programming 2 August 30th 05 05:00 PM
Select cells based on named Range and a column heading achidsey Excel Programming 3 August 12th 05 03:55 AM


All times are GMT +1. The time now is 06:09 AM.

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"