Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Find first empty row in a column Sub Tst2() Dim varnbrows As Double Range("A1").Select varnbrows = Selection.CurrentRegion.Rows.Count If Selection.Value = "" Then Exit Sub ElseIf Selection.Offset(1, 0).Value = "" Then Selection.Offset(1, 0).Select Else Selection.Offset(varnbrows, 0).Select End If End Sub this will take you to the first empty cell in column A Change the column by changing Range("A1") to whatever column you prefer -- davesexcel ------------------------------------------------------------------------ davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708 View this thread: http://www.excelforum.com/showthread...hreadid=522139 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to hide blank cells in a range | Excel Discussion (Misc queries) | |||
Determine whether a value is in a range of cells | Excel Discussion (Misc queries) | |||
how to format only a specific character or number in each cell withina range of cells | Excel Worksheet Functions | |||
Counting empty cells within a range of cells | New Users to Excel | |||
Counting empty cells within a range of cells | New Users to Excel |