Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try
Range("AS9:AS" & Cells(Rows.Count, "A").End(xlUp).Row).Select or do you mean upto ColA Range("AS9:A" & Cells(Rows.Count, "A").End(xlUp).Row).Select If this post helps click Yes --------------- Jacob Skaria "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? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select Range based on column name and not A1 notations | Excel Discussion (Misc queries) | |||
Sum select cells based on date range | Excel Worksheet Functions | |||
how can I select a range of cells based on a value of a cell? | Excel Discussion (Misc queries) | |||
How to select a range based on values in 1 column | Excel Programming | |||
Select cells based on named Range and a column heading | Excel Programming |