Hi All!
I have some code that will loop through a range of cells in column "F"
to find blank cells and if there are any to populate that cell with a
"0" value which it does BUT.. I am not sure how to add into my code
that I want the loop only to continue as long as the cell value in col.
"A" is not blank. At the moment the code will loop continuously until
all blank cells in col "F" are populated with a "0" which takes ages!!
Please help as I am unsure of the code needed here!! Thanks!!
Dim StartRow1 As Long
Dim myRng As Range
Dim FoundCell As Range
Dim WhatToFind As String
WhatToFind = ""
With ActiveSheet
StartRow1 = 2
Set myRng = .Range("F:F")
With myRng
Do
Set FoundCell = .Cells.Find(What:=WhatToFind, _
After:=.Cells(.Cells.Count), LookIn:=xlFormulas, _
LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False)
If FoundCell Is Nothing Then
Exit Do 'done
End If
FoundCell = "0"
Loop
End With
End With
Bookmarks