Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
finding next empty row from bottom up!!
hi, I need to find the next empty row in my data range, but it has several empty rows throughout it. I need to be able to measure from the bottom of a worksheet upwards, on column B and then select the next empty row any ideas? -- matpj ------------------------------------------------------------------------ matpj's Profile: http://www.excelforum.com/member.php...o&userid=21076 View this thread: http://www.excelforum.com/showthread...hreadid=481003 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
finding next empty row from bottom up!!
Part of your solution will probably need this code: Find the very last used cell in a Column: Sub LastCellInColumn() Range("A65536").End(xlup).Select End Sub Since you know "B" is the column with the last data, change the code to read: Range("B65536").End(x1up).Select Perhaps one of the more experienced members of this group can show us how to use this... -- Campbellj4 ------------------------------------------------------------------------ Campbellj4's Profile: http://www.excelforum.com/member.php...o&userid=28506 View this thread: http://www.excelforum.com/showthread...hreadid=481003 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
finding next empty row from bottom up!!
Use this code:Sub lastrow() Dim rRng As Range Set rRng = Range("A1:A" & Range("A" Rows.Count).End(xlUp).Row) With rRng.Offset(rRng.Count, 0).Resize(1, 1).Select End With End Sub places cursor in cell A99999 where 99999=the first row below the las entry in column -- swatsp0 ----------------------------------------------------------------------- swatsp0p's Profile: http://www.excelforum.com/member.php...fo&userid=1510 View this thread: http://www.excelforum.com/showthread.php?threadid=48100 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
finding next empty row from bottom up!!
Part of your solution will probably need this code: Find the very last used cell in a Column: Sub LastCellInColumn() Range("A65536").End(xlup).Select End Sub Since you know "B" is the column with the last data, change the code to read: Range("B65536").End(x1up).Select Perhaps one of the more experienced members of this group can show us how to use this... -- Campbellj4 ------------------------------------------------------------------------ Campbellj4's Profile: http://www.excelforum.com/member.php...o&userid=28506 View this thread: http://www.excelforum.com/showthread...hreadid=481003 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
finding next empty row from bottom up!!
Use this code:Sub lastrow() Dim rRng As Range Set rRng = Range("A1:A" & Range("A" & Rows.Count).End(xlUp).Row) With rRng.Offset(rRng.Count, 0).Resize(1, 1).Select End With End Sub places cursor in cell A99999 where 99999=the first row below the last entry in column A -- swatsp0p ------------------------------------------------------------------------ swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101 View this thread: http://www.excelforum.com/showthread...hreadid=481003 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
What produces empty rows at the bottom of a spreadsheet? | Excel Discussion (Misc queries) | |||
unwanted empty rows at worksheet bottom | Excel Discussion (Misc queries) | |||
finding next empty row from bottom up!! | Excel Programming | |||
Finding Bottom of Sheet | Excel Worksheet Functions | |||
empty rows at bottom of worksheet | Excel Discussion (Misc queries) |