+ Reply to Thread
Results 1 to 4 of 4

how to break a timed message?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-20-2003
    Location
    UK
    Posts
    18

    how to break a timed message?

    Hi I have message boxes which are for information but if no one is looking then I want my program to continue on. This code does that and shows a box with an 'OK' button. Now if someone is looking then I want to recognise a press of the button. I have tried various things like vbOK, vbOnly but no joy - so what's the magic line please?

    'shows countdown
    For counT = 5 To 1 Step -1
        message.popUp "This message will show for " & counT & " seconds", 1, "Quick Message " & counT
    Next
    TKIA

  2. #2
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: how to break a timed message?

    Have you tried using a modeless form? If you create a form and then use userform1.Show vbModeless, the form will display but will not stop the execution of the program.

  3. #3
    Registered User
    Join Date
    11-20-2003
    Location
    UK
    Posts
    18

    Re: how to break a timed message?

    Thanks for the reply but sorry I should have said - I am using Excel '97 so do not think vbModeless is an option - it is not recognised.

  4. #4
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: how to break a timed message?

    I can't help you further. I never used Excel '97. Maybe you can check in teh ehlp documentation about using modeless windows. It may have been implemented a different way.

+ 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