+ Reply to Thread
Results 1 to 6 of 6

Stopwatch Question in wrong group

Hybrid View

Navyguy Stopwatch Question in wrong... 05-06-2005, 12:17 AM
Leith Ross Hello Navyguy, I looked... 05-06-2005, 05:55 AM
Navyguy Thank-you for taking the time... 05-09-2005, 04:11 AM
Leith Ross Hello John, If you do... 05-09-2005, 04:27 AM
Navyguy Thanks for the advice. Sorry... 05-11-2005, 01:42 AM
Leith Ross Hello John, Since VBA... 05-11-2005, 04:30 AM
  1. #1
    Registered User
    Join Date
    05-05-2005
    Location
    Welland, Ontario, Canada
    Posts
    28

    Stopwatch Question in wrong group

    I posted this in the Misc group verses the programming group.

    Any help would be appreciated.

    Cheers

    http://www.excelforum.com/showthread.php?t=368352

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Navyguy,

    I looked over the stopwatch code and it's fine. The program uses a pair of command buttons that save the time the user presses the Start button and the time when the user presses the Stop button. The keyword Timer exists in VBA. It simply returns the number of seconds since midnight. You don't need to create a true VB timer which is a routine that generates a system interrupt. Your program is fine the way it is.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    05-05-2005
    Location
    Welland, Ontario, Canada
    Posts
    28
    Thank-you for taking the time to have a look at the programme/coding. The only problem with the program is that is does not work.

    If you start the countdown timer(top right), that works fine, but when that is running and you also start one or more of the stopwatches (leftside) the countdown timer stops and then needs to be reset.

    Both the countdown timer and the stopwatch (or all the stopwatches) need to work independently from each other.

    At first I thought it had to do with the DoEvents command, but after doing some research I am now thinking that an actual timer fuction is required.

    Additional comments are appreciated.

    Cheers

    John

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello John,

    If you do decide to use real timers, the system has a maximum limit on the number of timers you can use. Be sure to find out how many you system can support.

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    05-05-2005
    Location
    Welland, Ontario, Canada
    Posts
    28
    Thanks for the advice. Sorry for not responding sooner...good help is hard to find. I will try to research your point and see what I come up with and try to make some progress on this project.

    Cheers

    John

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello John,

    Since VBA doesn't have a timer function like Visual Basic, timers can be created using the API (Applications Programming Interface). If you are interested I have the API macro code to create timers. They very easy use. Let me know.

    Sincerely,
    Leith Ross

+ 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