Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I can usually find a similar previous question but not this time.
I can find the last row: Dim lastrow As Long lastrow = Cells(Rows.Count, "A").End(xlUp).Row How do I select a range of columns in the last row +1? My butchered attempt that doesn't work: Range(E" & lastrow + 1":L" & lastrow +1").select Thanks in advance. wal50 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
One way Cells(Rows.Count, "E").End(xlUp).Offset(1).Resize(, 8).Select Mike "wal50" wrote: I can usually find a similar previous question but not this time. I can find the last row: Dim lastrow As Long lastrow = Cells(Rows.Count, "A").End(xlUp).Row How do I select a range of columns in the last row +1? My butchered attempt that doesn't work: Range(E" & lastrow + 1":L" & lastrow +1").select Thanks in advance. wal50 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Use
Dim lastrow As Long lastrow = Cells(Rows.Count, "A").End(xlUp).Row + 1 Range("E" & lastrow & ":L" & lastrow).Select ----------------- Notice that I have already added 1 to the lastrow Compare what you had Range(E" & lastrow + 1":L" & lastrow +1").select with what I have above.... You missed the " before E, & after before ":L" and had extra quote at the end... Again remember: variable don't need quotes, strings do... & between two components "wal50" wrote: I can usually find a similar previous question but not this time. I can find the last row: Dim lastrow As Long lastrow = Cells(Rows.Count, "A").End(xlUp).Row How do I select a range of columns in the last row +1? My butchered attempt that doesn't work: Range(E" & lastrow + 1":L" & lastrow +1").select Thanks in advance. wal50 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you for the prompt response. A terrific site
wal50 "Sheeloo" wrote: Use Dim lastrow As Long lastrow = Cells(Rows.Count, "A").End(xlUp).Row + 1 Range("E" & lastrow & ":L" & lastrow).Select ----------------- Notice that I have already added 1 to the lastrow Compare what you had Range(E" & lastrow + 1":L" & lastrow +1").select with what I have above.... You missed the " before E, & after before ":L" and had extra quote at the end... Again remember: variable don't need quotes, strings do... & between two components "wal50" wrote: I can usually find a similar previous question but not this time. I can find the last row: Dim lastrow As Long lastrow = Cells(Rows.Count, "A").End(xlUp).Row How do I select a range of columns in the last row +1? My butchered attempt that doesn't work: Range(E" & lastrow + 1":L" & lastrow +1").select Thanks in advance. wal50 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cond. Format Data Bars of range based on values of another range | Excel Worksheet Functions | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Selecting range in list of range names depending on a cell informa | Excel Discussion (Misc queries) | |||
formula to sort a range so that it matches the exact rows of a column that is outside that range? | Excel Discussion (Misc queries) | |||
How to count dates within a certain range in a column with mutiple date range entries | Excel Worksheet Functions |