You could do it like this, which will return an array with the 2 names based on Ex.
Function Namex(Ex)
Select Case Ex
Case A
Namex = Array("Albert", "Avery")
Case B
Namex = Array("Bernard", "Bob")
Case C
Namex = Array("Cris", "Charles")
Case D
Namex = Array("David", "Derek")
End Select
End Function
Bookmarks