can somebody provide me with an answer as to why the following function
returns an error on the if line?
the error message is "object required"
Function countrecords() as integer
Dim count As Integer
count = 0
For Each cell In Worksheets("Saved Records").Range("A1:A500")
If cell.Value Is Not Null Then
count = count + 1
End If
Next cell
countrecords = count
End Function
Bookmarks