S
SS
I would like to run a Do Loop to look at any row that has
a blank cell in column A. If "A" is blank then it should
look in "E". If any of the text in "E" includes a
specific word then it will set the value in "A" to
somethiing other than blank.
This is what I have tried.
Count = 1
Do While Count < 20
Count = Count + 1
If Worksheets(1).Cells(Count, 1) = "" Then
If Worksheets(1).Cells.Find(What:="Solvent",
After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows,
SearchDirection:=xlNext, _
MatchCase:=False) = True Then
Worksheets(1).Cells(Count, 1) = "SOLVENTS"
End If
ElseIf Worksheets(1).Cells(Count, 1) <> "" Then
Exit Do
End If
Loop
It does not seem to like my trying to use a Find command
as part of an If statement. Any thoughts on a better way
to do this?
Thanks
SS
a blank cell in column A. If "A" is blank then it should
look in "E". If any of the text in "E" includes a
specific word then it will set the value in "A" to
somethiing other than blank.
This is what I have tried.
Count = 1
Do While Count < 20
Count = Count + 1
If Worksheets(1).Cells(Count, 1) = "" Then
If Worksheets(1).Cells.Find(What:="Solvent",
After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows,
SearchDirection:=xlNext, _
MatchCase:=False) = True Then
Worksheets(1).Cells(Count, 1) = "SOLVENTS"
End If
ElseIf Worksheets(1).Cells(Count, 1) <> "" Then
Exit Do
End If
Loop
It does not seem to like my trying to use a Find command
as part of an If statement. Any thoughts on a better way
to do this?
Thanks
SS