OK, I mistaked the function. InputBox returns "" if cancelled, but...
String.Length is an Integer, you should write:
If s="" Then
Or
If s.length=0 Then
Regards... and sorry for my mistake :(
"Armin Zingler" <az*******@freenet.de> escribió en el mensaje news:eZ**************@TK2MSFTNGP12.phx.gbl...
| "Alan" <NO**************@yahoo.com.au> schrieb
| > How do I know the use click the cancel button on the input box ?
|
| An empty string is returned:
|
| dim s as string
| s = inputbox(...)
| if s.length = "" then
| 'cancel pressed or no input
| else
| '
| end if
|
|
| --
| Armin
|
|
http://www.plig.net/nnq/nquote.html
|
http://www.netmeister.org/news/learn2quote.html
|