Have a SS that has a ton of lines, would like a button that would jump to the next cell that does not have text. It can vary each time though.
Thanks
Sub NextBlk()
Range("[COLOR=#ff0000]G[/COLOR]" & Evaluate("=MIN(IF([COLOR=#ff0000]G[/COLOR]1:[COLOR=#ff0000]G[/COLOR]" & Range("[COLOR=#ff0000]G[/COLOR]" & Rows.Count).End(xlUp).Row + 1 & "="""", _
ROW([COLOR=#ff0000]G[/COLOR]1:[COLOR=#ff0000]G[/COLOR]" & Range("[COLOR=#ff0000]G[/COLOR]" & Rows.Count).End(xlUp).Row + 1 & ")))")).Select
End Sub
Sub Last_Row()
Dim lastRow As Long
lastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row + 1
Range("A" & lastRow).Show
End Sub
Try this. Change the "G" to the letter of the column you need
Code:Sub NextBlk() Range("[COLOR=#ff0000]G[/COLOR]" & Evaluate("=MIN(IF([COLOR=#ff0000]G[/COLOR]1:[COLOR=#ff0000]G[/COLOR]" & Range("[COLOR=#ff0000]G[/COLOR]" & Rows.Count).End(xlUp).Row + 1 & "="""", _ ROW([COLOR=#ff0000]G[/COLOR]1:[COLOR=#ff0000]G[/COLOR]" & Range("[COLOR=#ff0000]G[/COLOR]" & Rows.Count).End(xlUp).Row + 1 & ")))")).Select End Sub
Sub NextBlk()
Range("G" & Evaluate("=MIN(IF(G1:G" & Range("G" & Rows.Count).End(xlUp).Row + 1 & "="""", ROW(G1:G" & Range("G" & Rows.Count).End(xlUp).Row + 1 & ")))")).Select
End Sub