I'm trying to data scrape some information for a long list of data that I have. The beginning of each segment that I need to scrape from (the active cell that I need to activate) has a font size of 20. However, this loop is running and working but when the cell that I need to exit the loop on, it goes to the else again (making an endless loop). Below is my code:
Dim repeat As Boolean
repeat = True
Do While repeat = True
If ActiveCell.Font.Size = 20 Then
repeat = False
Else
ActiveCell.End(xlDown).Activate
End If
Loop
I want the program to exit the loop once the activecell has a font with the size of 20.