I am using the below code to loop through each row however I only want to loop through visible cells in Column B (as I have filtered out the values I want to ignore) ranging from Row 10 -194. Does anyone know how I would do this?
For X = 192 to 10 Step -1
If Range("B" & X).Text = "" Then **This needs to change to visible cells only but not sure how!
Code required insert here
Else
End If
Next X
A row height of 0 means the row is hidden. So you could check for that
Assuming you are dealing with "Sheet1" of course.
You need a second loop to iterate through the Range.Areas of Range.SpecialCells(xlCellTypeVisible). Each Area could be one or more rows.
It seems you want to loop backwards so I continued with that direction. If the intention was to delete rows, there are easier ways to do that.