+ Reply to Thread
Results 1 to 5 of 5

MsgBox-at the end a msgBox popup

  1. #1
    CC
    Guest

    MsgBox-at the end a msgBox popup

    I have a macro that run every 30 minute and at the end a msgBox popup show up
    to say "I'll be back in Half hour BUT show up with a button "OK" and I
    need press that button in order to run a macro again .

    MY QUESTION IS THIS : Is it possible a msgbox popup and disappear , let
    say 5 seconds later without human intervention ???

    Thank in advance
    Cc

  2. #2
    Dave O
    Guest

    re: MsgBox-at the end a msgBox popup

    Instead of a msgbox, call up a form with that same message on it. Then
    you can display the message for a few seconds and close it.


  3. #3
    Bob Phillips
    Guest

    re: MsgBox-at the end a msgBox popup

    Dim cTime As Long
    Dim WSH As Object

    Set WSH = CreateObject("WScript.Shell")
    cTime = 10 ' 10 secs
    Select Case WSH.Popup("Open an Excel file?!", cTime, "Question",
    vbOKCancel)
    Case vbOK
    MsgBox "You clicked OK"
    Case vbCancel
    MsgBox "You clicked Cancel"
    Case -1
    MsgBox "Timed out"
    Case Else
    End Select


    --
    HTH

    Bob Phillips

    (remove xxx from email address if mailing direct)

    "CC" <[email protected]> wrote in message
    news:[email protected]...
    > I have a macro that run every 30 minute and at the end a msgBox popup show

    up
    > to say "I'll be back in Half hour BUT show up with a button "OK" and I
    > need press that button in order to run a macro again .
    >
    > MY QUESTION IS THIS : Is it possible a msgbox popup and disappear , let
    > say 5 seconds later without human intervention ???
    >
    > Thank in advance
    > Cc




  4. #4
    CC
    Guest

    re: MsgBox-at the end a msgBox popup

    Now I have the message "TIME OUT " That need to Click OO

    "Bob Phillips" wrote:

    > Dim cTime As Long
    > Dim WSH As Object
    >
    > Set WSH = CreateObject("WScript.Shell")
    > cTime = 10 ' 10 secs
    > Select Case WSH.Popup("Open an Excel file?!", cTime, "Question",
    > vbOKCancel)
    > Case vbOK
    > MsgBox "You clicked OK"
    > Case vbCancel
    > MsgBox "You clicked Cancel"
    > Case -1
    > MsgBox "Timed out"
    > Case Else
    > End Select
    >
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (remove xxx from email address if mailing direct)
    >
    > "CC" <[email protected]> wrote in message
    > news:[email protected]...
    > > I have a macro that run every 30 minute and at the end a msgBox popup show

    > up
    > > to say "I'll be back in Half hour BUT show up with a button "OK" and I
    > > need press that button in order to run a macro again .
    > >
    > > MY QUESTION IS THIS : Is it possible a msgbox popup and disappear , let
    > > say 5 seconds later without human intervention ???
    > >
    > > Thank in advance
    > > Cc

    >
    >
    >


  5. #5
    Dave Peterson
    Guest

    re: MsgBox-at the end a msgBox popup

    The lines with MsgBox in Bob's code are just placeholders. You'll want to
    replace them with what you want to happen in each situation.



    CC wrote:
    >
    > Now I have the message "TIME OUT " That need to Click OO
    >
    > "Bob Phillips" wrote:
    >
    > > Dim cTime As Long
    > > Dim WSH As Object
    > >
    > > Set WSH = CreateObject("WScript.Shell")
    > > cTime = 10 ' 10 secs
    > > Select Case WSH.Popup("Open an Excel file?!", cTime, "Question",
    > > vbOKCancel)
    > > Case vbOK
    > > MsgBox "You clicked OK"
    > > Case vbCancel
    > > MsgBox "You clicked Cancel"
    > > Case -1
    > > MsgBox "Timed out"
    > > Case Else
    > > End Select
    > >
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (remove xxx from email address if mailing direct)
    > >
    > > "CC" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I have a macro that run every 30 minute and at the end a msgBox popup show

    > > up
    > > > to say "I'll be back in Half hour BUT show up with a button "OK" and I
    > > > need press that button in order to run a macro again .
    > > >
    > > > MY QUESTION IS THIS : Is it possible a msgbox popup and disappear , let
    > > > say 5 seconds later without human intervention ???
    > > >
    > > > Thank in advance
    > > > Cc

    > >
    > >
    > >


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1