Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have an excel spreadsheet, with over 3000 rows. I have to review and
sort daily, then go back to the next blank row and start entering data. I am looking for a quick macro I can asign to a button that will take me to the next free row A?. Tried this ham fisted code, but not working 'find next line for data entry Dim CurrentRow As Integer 'this variable will be changed according to the row being searched CurrentRow = 13 Do CurrentRow = CurrentRow + 1 Loop While Worksheets("Concern Log").Range("B" & CurrentRow) < "" |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
newrow=cells(rows.count,"B").end(xlup).row+1
-- Gary''s Student - gsnu2007b "Decreenisi" wrote: I have an excel spreadsheet, with over 3000 rows. I have to review and sort daily, then go back to the next blank row and start entering data. I am looking for a quick macro I can asign to a button that will take me to the next free row A?. Tried this ham fisted code, but not working 'find next line for data entry Dim CurrentRow As Integer 'this variable will be changed according to the row being searched CurrentRow = 13 Do CurrentRow = CurrentRow + 1 Loop While Worksheets("Concern Log").Range("B" & CurrentRow) < "" |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On 3 Dec, 10:42, Gary''s Student
wrote: newrow=cells(rows.count,"B").end(xlup).row+1 -- Gary''s Student - gsnu2007b Thanks, have tried this but can't get it to work.... have found this one on the web which seems OK Range("B13").End(xlDown).Offset(1, 0).Select |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Range("B13").End(xlDown).Offset(1, 0).Select
The code above will work if there are no blank cells in column B between top and bottom. If you truly want to get to the bottom of A try this. Sub findbottom() ActiveSheet.Cells(Rows.Count, 1).End(xlUp) _ .Offset(1, 0).Select End Sub Gord Dibben MS Excel MVP On Mon, 3 Dec 2007 05:34:36 -0800 (PST), Decreenisi wrote: On 3 Dec, 10:42, Gary''s Student wrote: newrow=cells(rows.count,"B").end(xlup).row+1 -- Gary''s Student - gsnu2007b Thanks, have tried this but can't get it to work.... have found this one on the web which seems OK Range("B13").End(xlDown).Offset(1, 0).Select |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Bottom of A" should have read "bottom of B"
Change also to Rows.Count, 2 for column B Gord On Mon, 03 Dec 2007 09:39:43 -0800, Gord Dibben <gorddibbATshawDOTca wrote: Range("B13").End(xlDown).Offset(1, 0).Select The code above will work if there are no blank cells in column B between top and bottom. If you truly want to get to the bottom of A try this. Sub findbottom() ActiveSheet.Cells(Rows.Count, 1).End(xlUp) _ .Offset(1, 0).Select End Sub Gord Dibben MS Excel MVP On Mon, 3 Dec 2007 05:34:36 -0800 (PST), Decreenisi wrote: On 3 Dec, 10:42, Gary''s Student wrote: newrow=cells(rows.count,"B").end(xlup).row+1 -- Gary''s Student - gsnu2007b Thanks, have tried this but can't get it to work.... have found this one on the web which seems OK Range("B13").End(xlDown).Offset(1, 0).Select |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
where can i find grid data entry in excel? | New Users to Excel | |||
Cell Entry That Locks Selected Cells From Any Data Entry. | Excel Worksheet Functions | |||
where on earth can I find data entry forms in Excel 2007 | Excel Discussion (Misc queries) | |||
Can't seem to find way to have easy data entry AND analysis - idea | Excel Discussion (Misc queries) | |||
How do I find an unknown value on a line made from known data? | Excel Discussion (Misc queries) |