hi everybody ,,,
i have created a function named check_ punctuation like this :
this function work fine and return true or false , but whenever i use it in DataValidation , Custom box excel message alert for every data entry.
plz helpppppppp
with best wishes for all my friends ...
i have created a function named check_ punctuation like this :
VBA Code:
Function check_punctuation(my_str As String) As Boolean
Dim asci_code
Dim str_temp
For i = 1 To Len(my_str)
asci_code = Asc(Mid(my_str, i, 1))
Select Case asci_code
Case 32 To 47
check_punctuation = True
Case 123 To 126
check_punctuation = True
Case 91 To 96
check_punctuation = True
Case 61
check_punctuation = True
Case 64
check_punctuation = True
Case Else
check_punctuation = False
End Select
Next
End Function
this function work fine and return true or false , but whenever i use it in DataValidation , Custom box excel message alert for every data entry.
plz helpppppppp
with best wishes for all my friends ...