I am using below code and this is getting overflow ,
Dim RowCount As Integer
RowCount = 1
For Each rw In sh.Rows
If sh.Cells(rw.Row, 1).Value = "Engg" Then
r = RowCount
addition (r) 'function
End If
RowCount = RowCount + 1 ' here rowcount is getting overflow.
How can I take Each loop with only avialable rows in sheet