Is there a way for me to test whether a UDF string parameter contains only characters from a predefined character set without having to loop through each character?

Function MyFun(Code As String) As Double
Const CharSet As String = "ANP*-$#"
 . . .
How can I test whether Code contains only characters in CharSet?