#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Last Row range

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
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
Cond. Format Data Bars of range based on values of another range alexmo Excel Worksheet Functions 4 January 16th 09 04:03 AM
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM


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