Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Find second blank row
Can someone edit this so that it will find the second blank row instead of the first blank row? Thanks Function FindBlankRow() x = 2 Do While ActiveSheet.Cells(x, 1) < "" x = x + 1 Loop FindBlankRow = x - 1 -- singlgl1 ------------------------------------------------------------------------ singlgl1's Profile: http://www.excelforum.com/member.php...o&userid=26389 View this thread: http://www.excelforum.com/showthread...hreadid=488365 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Find second blank row
Function FindBlankRow() As Integer
Dim First As Boolean First = True For i = 1 To Rows.Count If IsEmpty(Cells(i, 1)) Then If First Then First = False Else FindBlankRow = i Exit Function End If End If Next i End Function Bob Umlas "singlgl1" wrote in message ... Can someone edit this so that it will find the second blank row instead of the first blank row? Thanks Function FindBlankRow() x = 2 Do While ActiveSheet.Cells(x, 1) < "" x = x + 1 Loop FindBlankRow = x - 1 -- singlgl1 ------------------------------------------------------------------------ singlgl1's Profile: http://www.excelforum.com/member.php...o&userid=26389 View this thread: http://www.excelforum.com/showthread...hreadid=488365 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Find second blank row
thanks, I'll give it a try! -- singlgl1 ------------------------------------------------------------------------ singlgl1's Profile: http://www.excelforum.com/member.php...o&userid=26389 View this thread: http://www.excelforum.com/showthread...hreadid=488365 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Replace null string with blank cell | Excel Discussion (Misc queries) | |||
How do I find the cell address of the 2nd largest of a set? | Excel Discussion (Misc queries) | |||
Blank Cells in Pivot Tables | Excel Discussion (Misc queries) | |||
Using the Find tool in EXCEL | Excel Worksheet Functions | |||
Excel has a "Find Next" command but no "Find Previous" command. | Excel Discussion (Misc queries) |