For m = 2 To 40

With Sheets("EEA Referral Tracker").Cells(3, m)
If .Value <> "" Then tu = m

End With
Next m


I tried to count the number of rows which are filled using this until the last column. But this doesn’t work. Can u help me in this.