Nitrous270
Technical User
Is it possible to have a visual basic script have an Input Box to accept a custom answer and if the user doesn't make an input within a specified time then it accepts a default?
This is the best piece of code I can come up with so far but the StrPtr() function seems to return an error no to mention its not timed in anyway. Any help would be appreciated. Thanks in advance.
Nitrous270
Dim Answer
Answer = InputBox(prompt:="Enter a value", Default:="Value")
If StrPtr(Answer) = 0 Then
MsgBox "You clicked cancel"
Else
MsgBox "You entered: " & Answer
End If
This is the best piece of code I can come up with so far but the StrPtr() function seems to return an error no to mention its not timed in anyway. Any help would be appreciated. Thanks in advance.
Nitrous270
Dim Answer
Answer = InputBox(prompt:="Enter a value", Default:="Value")
If StrPtr(Answer) = 0 Then
MsgBox "You clicked cancel"
Else
MsgBox "You entered: " & Answer
End If