Rolly_Sefu
Board Regular
- Joined
- Oct 25, 2013
- Messages
- 149
Hello
I have created 2 functions
F1
F2
When I am on the sheet where the function are they bought evaluate perfectly.
But when i try to reference the cell ( in a lookup table from VLookup ) the F2 function shows "".
Does anyone have any idea why the F2 function it will not remain evaluated ?
Thanks
I have created 2 functions
F1
Code:
Function special_txttonr(text As String)
Dim arr(), a As Long
c = 0
For a = LBound(Split(text, ",")) To UBound(Split(text, ","))
ReDim Preserve arr(a)
arr(a) = CInt(Split(text, ",")(a))
b = arr(a)
x = WorksheetFunction.Max(b, c)
c = x
Next a
special_txttonr = x
End Function
F2
Code:
Function checkifclosed(text As String)
Dim arr(), atext As Long
For atext = LBound(Split(text, ",")) To UBound(Split(text, ","))
ReDim Preserve arr(atext)
arr(atext) = CInt(Split(text, ",")(atext))
If Range("F" & arr(atext) + 16) <> "" Then
x = arr(atext)
Else
x = 0
Exit For
End If
Next atext
checkifclosed = x
End Function
When I am on the sheet where the function are they bought evaluate perfectly.
But when i try to reference the cell ( in a lookup table from VLookup ) the F2 function shows "".
Does anyone have any idea why the F2 function it will not remain evaluated ?
Thanks