Validating Input Box
Satish,
Using InputBox, you can't do anything until the user click OK and returns
the strings. Then you can test it.
If you make your own pseudo InputBox with a userform/textbox etc, you can
monitor the characters as typed in the KeyDown/KeyPress events and react
accordingly.
NickHK
"Satish" wrote in message
oups.com...
Hi All
Is there any easy way I can validate the string entered by the user in
an input box?
I basically don't want the user to enter characters that are considered
invalid for file/folder names. i.e., \ / : * ? " < |
Will I have to parse the string and check each character one by one or
is there any easy way to do it?
Ideas appreciated.
Thanks
Satish
|