Hi,
I am trying to write a new user defined function, but it doesn't show up on the list of the options when I go to cell and press "=". Maybe someone can point what the problem is. It suppose extract middle section from the Full Name (FN) text.
Thank you very much
Function AssignmentNo(FN As String)
If Mid(FN, Len(FN) - 8, 1) = "-" Then
AssignementNo = Mid(FN, Len(FN) - 16, 10)
Else
AssignementNo = Mid(FN, Len(FN) - 14, 8)
End If
End Function
I am trying to write a new user defined function, but it doesn't show up on the list of the options when I go to cell and press "=". Maybe someone can point what the problem is. It suppose extract middle section from the Full Name (FN) text.
Thank you very much
Function AssignmentNo(FN As String)
If Mid(FN, Len(FN) - 8, 1) = "-" Then
AssignementNo = Mid(FN, Len(FN) - 16, 10)
Else
AssignementNo = Mid(FN, Len(FN) - 14, 8)
End If
End Function