+ Reply to Thread
Results 1 to 5 of 5

How to add a Timer For Excel Sheet

Hybrid View

albatreek How to add a Timer For Excel... 08-22-2013, 06:53 AM
hamjam Re: How to add a Timer For... 08-26-2013, 07:39 AM
albatreek Re: How to add a Timer For... 08-26-2013, 09:02 AM
hamjam Re: How to add a Timer For... 08-26-2013, 10:24 AM
albatreek Re: How to add a Timer For... 08-28-2013, 02:48 AM
  1. #1
    Registered User
    Join Date
    04-07-2013
    Location
    cairo
    MS-Off Ver
    Excel 2003
    Posts
    4

    How to add a Timer For Excel Sheet

    Hello everyone,

    I wonder if anyone can help me, I have created a multibale choice English test the duration of the test is 30 Minutes.
    what i want to do is to set a timer after 30 Minutes. you can not enter anymore data to the excel sheet or may be gives a bob up message just saving the data and closes

    Plese Help
    Attached is my English Test
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-07-2013
    Location
    south africa
    MS-Off Ver
    Excel 2003-13
    Posts
    210

    Re: How to add a Timer For Excel Sheet

    Hello
    Did you find a solution to your question ?

    Regards
    Most helpful to mark solved items as such (see help for directions). Star ratings are always welcome.

  3. #3
    Registered User
    Join Date
    04-07-2013
    Location
    cairo
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How to add a Timer For Excel Sheet

    Quote Originally Posted by hamjam View Post
    Hello
    Did you find a solution to your question ?

    Regards
    No not yet, i can not find a code that after 30 Minutes from starting the test saves and closes the excel sheet
    the thing is, i test alot of people i can not keep track of them all

  4. #4
    Forum Contributor
    Join Date
    01-07-2013
    Location
    south africa
    MS-Off Ver
    Excel 2003-13
    Posts
    210

    Re: How to add a Timer For Excel Sheet

    Hello
    This will do a silent countdown and then will stop the user and close the spreadsheet.

    See if that does the job.

    Public Sub Countdown()
        Dim start, finish As Long
        timelimit = 30 * 60           '30 minutes, can be changed
        start = Timer                 'Set start time.
        finish = start + timelimit    'set finish time
        Do While Timer < finish And stopped = False
            DoEvents    ' other things continue
        Loop
        MsgBox "TIME IS UP"
        ActiveWorkbook.Save
        Application.Quit
    End Sub
    Regards

  5. #5
    Registered User
    Join Date
    04-07-2013
    Location
    cairo
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How to add a Timer For Excel Sheet

    Quote Originally Posted by hamjam View Post
    Hello
    This will do a silent countdown and then will stop the user and close the spreadsheet.

    See if that does the job.

    Public Sub Countdown()
        Dim start, finish As Long
        timelimit = 30 * 60           '30 minutes, can be changed
        start = Timer                 'Set start time.
        finish = start + timelimit    'set finish time
        Do While Timer < finish And stopped = False
            DoEvents    ' other things continue
        Loop
        MsgBox "TIME IS UP"
        ActiveWorkbook.Save
        Application.Quit
    End Sub
    Regards
    thank you so much for your help, it is great this is exactly what i was looking for

    Regards

+ 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: 1
    Last Post: 12-12-2012, 08:46 PM
  2. Display an Countdown timer on sheet
    By siddisi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2012, 08:57 AM
  3. Excel Timer
    By Bob@Sun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2010, 06:05 PM
  4. Replies: 1
    Last Post: 03-10-2006, 08:10 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