+ Reply to Thread
Results 1 to 13 of 13

Script for Message Box and repeat every 10 minutes

  1. #1
    Forum Contributor
    Join Date
    10-09-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    119

    Question Script for Message Box and repeat every 10 minutes

    Hello All,

    You've all been very helpful in the past, I hope you have an answer. Attached workbook - I want to have a Message Popup each time you open the excel workbook AND have this same message reappear every 10 minutes.

    They people using this NEED EXTRA REMINDERS on the rules for using and I want to make sure that see if often. I save it a try with a sub called my_procedure and sub test to run it again but something is wrong.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by jcmckeon; 01-08-2019 at 01:31 PM. Reason: add file

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Script for Message Box and repeat every 10 minutes

    Why not show us the code you're using?

    Better still upload the workbook!
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Script for Message Box and repeat every 10 minutes

    In Module
    Please Login or Register  to view this content.
    In workbook open
    Please Login or Register  to view this content.
    This is set for 30 seconds to prove worked - change your time at "RunTime"

    Edit:: Workbook close also needs "Stop Timer" macro to run

    Please Login or Register  to view this content.
    Last edited by nigelog; 01-08-2019 at 01:30 PM.

  4. #4
    Forum Contributor
    Join Date
    10-09-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Script for Message Box and repeat every 10 minutes

    Sorry I thought I did. It is there now Richard

  5. #5
    Forum Contributor
    Join Date
    10-09-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Script for Message Box and repeat every 10 minutes

    Hi Nigelog

    Is there a way to colorize the message box or make font bigger?

  6. #6
    Forum Contributor
    Join Date
    10-09-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Script for Message Box and repeat every 10 minutes

    What about a user form to replace the message box so that I can design it better. Thoughts?

  7. #7
    Forum Contributor
    Join Date
    10-09-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Script for Message Box and repeat every 10 minutes

    Can the message box say open until the user closes it, then the timer starts

  8. #8
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Script for Message Box and repeat every 10 minutes

    Use a userform instead and design it how you wish. Call that from the timer

  9. #9
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Script for Message Box and repeat every 10 minutes

    Either can stay open until closed. I'm away from pc now so can't help unfortunately

  10. #10
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Script for Message Box and repeat every 10 minutes

    Inside message sub replace all with userform1.show and stoptimer. On userform close button starttimer userform1 unload.
    Apologies, no square brackets on phone

  11. #11
    Forum Contributor
    Join Date
    10-09-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Script for Message Box and repeat every 10 minutes

    Hi All,

    I've changed and now have a UserForm opening on open of worksheet. Click the close button to close. BUT I want the timer to reopen this userform every
    minute or so (I want to adjust) and that the user HAS to click the close button. Obnoxious for sure, but it is the ONLY way to make people do the right thing.

    Thank you in advance. See attached.
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    10-09-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Script for Message Box and repeat every 10 minutes

    Hi Nigelog, see below. I'm not that quick with VB. can you help? Thanks in advance.

  13. #13
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Script for Message Box and repeat every 10 minutes

    Just set time for message appearance
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to short the repeat script
    By teowchy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-05-2012, 05:58 AM
  2. Repeat script or marco dependent on the value in a cell
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2012, 05:28 AM
  3. Script to convert column from minutes to decimal hours
    By cyanidepwns in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2011, 04:29 PM
  4. Replies: 1
    Last Post: 03-02-2011, 02:54 PM
  5. Macro to display message every n minutes!
    By SER01 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-14-2009, 07:37 PM
  6. Make A Script Repeat
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-23-2008, 04:42 PM
  7. Message after x minutes of inactivity
    By Ekser in forum Excel General
    Replies: 0
    Last Post: 02-14-2005, 06:07 AM

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