Hello there,
I have a timed msgbox:
I want to use vbOkCancel instead of vbOkOnly and be able to say something like if vbcancel then exit sub....
I've tried a few ways but couldnt find a working one... any ideas?
thanks.
I have a timed msgbox:
Code:
For x = 1 To 10
Dim oSHL As Object
On Error Resume Next
Err.Clear
Set oSHL = CreateObject("WScript.Shell")
If Err <> 0 Then
MsgBox "Error:" & Err
Else
oSHL.PopUp "Now running item " & x & " out of 10", 1, "Timed MsgBox ...", vbOKOnly
End If
Next x
I want to use vbOkCancel instead of vbOkOnly and be able to say something like if vbcancel then exit sub....
I've tried a few ways but couldnt find a working one... any ideas?
thanks.