+ Reply to Thread
Results 1 to 12 of 12

VB: Timer and Screen Pop-up

  1. #1
    Registered User
    Join Date
    06-12-2014
    Location
    Makati Philippines
    MS-Off Ver
    MS OFFICE 2010
    Posts
    58

    VB: Timer and Screen Pop-up

    Hi All,

    I need help to improve this project i've created. right now this project is an Exam for our agents. You can try it first if you want. i've attached the file below.
    i need a help in puting a timer that will compute the seconds or minutes it took the agent to finish the exam. timer should start after they click "Take the ETP" button. and finally, can someone also help me in creating a screen / a pop-up that will show the ff example.

    [I]EXAMPLE:[/I]
    Name of Examinee
    Answer:
    1. A = Correct
    2. B = Incorrect
    3. A = Correct
    4. C = Correct
    5. D = Incorrect

    Thanks in advance.. Please feel free to post a comment below for any question or clarification about anything with regards to this project.
    Attached Files Attached Files
    Last edited by saikong051; 07-09-2014 at 03:04 PM.

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

    Re: VB: Timer and Screen Pop-up

    Just use Timer, so have stTimer=timer and endTimer=timer then timeTaken=endTimer-stTimer.

    Use a userform for the pop up.
    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
    06-12-2014
    Location
    Makati Philippines
    MS-Off Ver
    MS OFFICE 2010
    Posts
    58

    Re: VB: Timer and Screen Pop-up

    i'll try this one Nathansav. by the way, if i want to print the length of time it took them to finish the exam. i'll just use the same code that i've used in printing the result in the excel. right?

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

    Re: VB: Timer and Screen Pop-up

    Yes, that should be fine.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,452

    Re: VB: Timer and Screen Pop-up

    I've added a class module with Timer code in it. I've placed the start where I think it needs to go but feel free to move it around.

    Please see your updated example.

    Regards, TMS
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Registered User
    Join Date
    06-12-2014
    Location
    Makati Philippines
    MS-Off Ver
    MS OFFICE 2010
    Posts
    58

    Re: VB: Timer and Screen Pop-up

    Thank you so much!!! it worked way better than the one im using. hehe. Thank you TMS!

    i'll still wait for some input on the other problem before i tag this as solved.

  7. #7
    Registered User
    Join Date
    06-12-2014
    Location
    Makati Philippines
    MS-Off Ver
    MS OFFICE 2010
    Posts
    58

    Re: VB: Timer and Screen Pop-up

    Thank you all for helping me on the timer for this project.
    i was able to finish the remaining problem . by reading some of the posts when in using vbNewLine in MsgBox.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,452

    Re: VB: Timer and Screen Pop-up

    Good, well done. I quite fancied working on this, so you might as well have it:

    Please Login or Register  to view this content.

    See the attached updated example.

    Regards, TMS
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-12-2014
    Location
    Makati Philippines
    MS-Off Ver
    MS OFFICE 2010
    Posts
    58

    Re: VB: Timer and Screen Pop-up

    Hi TMS,

    Thank you very much. i'll try this file and code you've added.
    This might be much better to what i've done. hehe
    Thank you so much for the help!

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,452

    Re: VB: Timer and Screen Pop-up

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  11. #11
    Registered User
    Join Date
    06-12-2014
    Location
    Makati Philippines
    MS-Off Ver
    MS OFFICE 2010
    Posts
    58

    Re: VB: Timer and Screen Pop-up

    Hi TMS,

    i've already tagged this thread as SOLVED. but im trying to add Rep and im getting this message when i click Add Rep. "You must spread some Reputation around before giving it to TMS again."

    but i was able to give Rep to you yesterday.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,452

    Re: VB: Timer and Screen Pop-up

    That's just to stop people "cheating". It forces you to give rep to other people before you can give rep to the same person again.

    If you rep someone else for helping you, it'll be fine.

    Regards, TMS

+ 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. Getting Splash Screen close with Timer then have User Form Appear
    By Hammy1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2013, 02:53 PM
  2. Replies: 1
    Last Post: 12-12-2012, 08:46 PM
  3. Splash screen closed with timer event
    By LD2020 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2010, 05:07 PM
  4. Excel Session timer 10min splash screen Warning then 15min force close
    By Phil_pac in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-20-2009, 12:31 PM
  5. [SOLVED] Stopping a Timer / Running a timer simultaneously on Excel
    By Paul23 in forum Excel General
    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