There are many other posts with people looking to find the end of the data in a column so they can enter new data in the next empty row - That is Not what I want!
I have many rows of data that I need to step through and enter additional info.
I want to start at the first row of of my sheet select a cell hit the macro button and it takes me to the next row with a blank cell in the D column.
I enter some info and hit the macro button again and it takes me to the next row with a blank in column D.
I realise the code below is completely wrong but I have tried various combinations of range.find.select etc. Just wanted to let you know that I have tried a number of things.
I seem to have hit a wall with how to:
a: define a range using current(activecell) to give me current row to the end of D column.
b: use that range with a find command to find the next "" in the D Column.
c: select the cell containing the blank or I guess a message "no more blanks" or perhaps select the last cell of the column.
Yes I am noob to VBA. Some stuff I get straight away but others I end up down the rabbit hole never to be seen again.
Any help would be gratefully received.
I have many rows of data that I need to step through and enter additional info.
I want to start at the first row of of my sheet select a cell hit the macro button and it takes me to the next row with a blank cell in the D column.
I enter some info and hit the macro button again and it takes me to the next row with a blank in column D.
I realise the code below is completely wrong but I have tried various combinations of range.find.select etc. Just wanted to let you know that I have tried a number of things.
I seem to have hit a wall with how to:
a: define a range using current(activecell) to give me current row to the end of D column.
b: use that range with a find command to find the next "" in the D Column.
c: select the cell containing the blank or I guess a message "no more blanks" or perhaps select the last cell of the column.
Yes I am noob to VBA. Some stuff I get straight away but others I end up down the rabbit hole never to be seen again.
Any help would be gratefully received.
Code:
Sub Find_Blank()'
' Find_Blank Macro
'
'
Dim rng As Range
Dim fnd_rng As Range
Set rng = Range(ActiveCell, ActiveCell.End(xlDown))
Set fnd_rge = rng.Find(What:="", _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not fnd_rge Is Nothing Then
fnd_rge.Select
Else
MsgBox "Nothing found"
End If
End Sub