It might be a simple question but I couldn't find an answer yet I have a cell which contains cells range as a text at the format of A1:A15. I am trying to write a function to receive the actual range of the cells (A1:A15) but it only gives me the address at which the actual cell is (B4).
how can I get the range itself and not the address of the cell?
the function is:
Function IsSick(ByVal Arr As Range) As Integer
Dim i, k As Integer
k = 0
Arr.Select
For i = 2 To Arr.Count
If Arr(i) >= 37 Then k = k + 1
Next i
IsSick = k
End Function
thank you in advance