That's really wonderful and awesome
How can I use it in a code. I tried the following but got an error
Sub TestFunction()
    Dim cel As Range
    
    For Each cel In Range("F1:F10")
        cel.Value = myUDF(20, 30, Array("A", "B", "C"))
    Next cel
End Sub