+ Reply to Thread
Results 1 to 4 of 4

Warning message if user has been in workbook for longer than 10 minutes

  1. #1
    Registered User
    Join Date
    04-20-2014
    Location
    London
    MS-Off Ver
    Windows Excel 2010
    Posts
    79

    Warning message if user has been in workbook for longer than 10 minutes

    Hi guys,

    I have a spreadsheet which needs to be used by multiple users, unfortuantely there are too many features on the sheet that don't work in a shared spreadsheet.

    I would therefore like to add some kind of splashscreen/message box to tell a user in red writing after 20 minutes "*WARNING& You have been in this spreadsheet for longer than 20 minutes, would you like to exit as other users may want to use this workbook?". If yes is selected the spreadsheet prompts for closing (obviously asking if you would like to save if any changes have been made).

    Any help would be appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Warning message if user has been in workbook for longer than 10 minutes

    start a timer on opening

    so in workbook open

    have

    Please Login or Register  to view this content.
    then in a module have a sub called SplashWarning

    Please Login or Register  to view this content.
    or you'll need a userform for red text/custom warning
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    04-20-2014
    Location
    London
    MS-Off Ver
    Windows Excel 2010
    Posts
    79

    Re: Warning message if user has been in workbook for longer than 10 minutes

    I have tried to use the code you have suggested in Private Sub Workbook_Open ()

    dim d as date

    d=time + timeval("00:20:00")
    Application.OnTime t, "UserForm1", , False

    Although I know the Userform reference may be incorrect, I am receiving an error "D- Time + Timeval" Compile Error Sub or Function not defines.

  4. #4
    Registered User
    Join Date
    04-20-2014
    Location
    London
    MS-Off Ver
    Windows Excel 2010
    Posts
    79

    Re: Warning message if user has been in workbook for longer than 10 minutes

    I have now used the following code to resolve my issue.
    Please Login or Register  to view this content.
    Is there any way to get excel to take excel out of MINIMIZE and display the message if the user has excel minimized.

+ 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. Replies: 2
    Last Post: 03-10-2013, 09:56 PM
  2. Showing a user name in a message box if a workbook is read only by that user
    By derryt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2012, 05:01 AM
  3. Replies: 1
    Last Post: 07-12-2006, 05:48 PM
  4. [SOLVED] How do I insert a message when a user opens my Excel workbook?
    By kp5689 in forum Excel General
    Replies: 1
    Last Post: 09-16-2005, 11:05 AM
  5. [SOLVED] How do I input a warning message to remind the user to enter into.
    By sugarbrit17 in forum Excel General
    Replies: 3
    Last Post: 01-25-2005, 05:06 PM

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