Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set rng = Intersect(Union(Range("A:A"), Range("C:D")), ActiveSheet.UsedRange)
With rng
lFirstRow = .Row
lLastRow = lFirstRow + .Rows.Count - 1
i = 1
For lRow = lFirstRow To lLastRow
If Application.CountA( _
Intersect(rng, _
Union(Cells(lRow, "A"), _
Cells(lRow, "C"), _
Cells(lRow, "D")))) > 0 Then
cnt = cnt + 1
End If
i = i + 1
Next
End With
application.intersect(....)
application.union(....)