Function ISLIKE(text As String, pattern As String) As Boolean If text Like pattern Then ISLIKE = True _ Else ISLIKE = False End Function