+ Reply to Thread
Results 1 to 7 of 7

how to use excel stopwatch without impact on other excel

  1. #1
    Registered User
    Join Date
    09-26-2023
    Location
    Malaysia
    MS-Off Ver
    11
    Posts
    4

    how to use excel stopwatch without impact on other excel

    Hi, recently i created a stopwatch in excel. however, the timer stop whenever i edit other column in same excel or edit in other excel. how can i avoid this?
    Please help.

    I code in Modules.

    Please Login or Register  to view this content.
    thanks and looking forward for solution.
    Last edited by AliGW; 09-26-2023 at 03:25 AM. Reason: Code tags added - please review the forum guidelines.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: how to use excel stopwatch without impact on other excel

    There is nothing in the code you showed us that would cause this. The timer should persist no matter what you are doing in the user interface. You have a sub called StopTimer1. Is it called from anywhere in other code in the same file? If so, that is probably what is causing it to stop.

    It would help if you attached your file so we can reproduce the behavior.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: how to use excel stopwatch without impact on other excel

    @dummyfella101, does the timer actually stop or does it merely pause whilst the application interrupt works (which it is meant to do to enable your other op to take place) then it should catch up the paused time.
    I have upload a couple of apps showing this (the clock merely stops updating but then register correctly when it has the application back), I believe the only way you can overcome this is by multi interrupts of the API which is likely to be unstable.
    Does it affect your app operation or is this just aesthetically displeasing .
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  4. #4
    Registered User
    Join Date
    09-26-2023
    Location
    Malaysia
    MS-Off Ver
    11
    Posts
    4

    Re: how to use excel stopwatch without impact on other excel

    Hi Jeff,

    thanks for replying. Here attach with the file. Hope you can replicate it.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-26-2023
    Location
    Malaysia
    MS-Off Ver
    11
    Posts
    4

    Re: how to use excel stopwatch without impact on other excel

    Hi Torachan,

    Thanks for the reply. here i attach with the files.
    the timer basically pause if i edit in the same excel but it will stop totally if i edit in another excel.
    Hope you can open my file and try it out. thanks
    Attached Files Attached Files

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: how to use excel stopwatch without impact on other excel

    You seem to exposed another MicroSoft idiosyncrasy, I have never had occasion to work with two workbooks open and a timer running.
    This appears to be a necessity of the system interrupt to be able to interrogate the keyboard input.
    However I think I understand your requirement (i.e. to have a means of recording the lapsed times of several tasks at the same time).
    Have a look at the attached file it utilises input from the system clock, records individual start and finish times and calculates the time differences.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-26-2023
    Location
    Malaysia
    MS-Off Ver
    11
    Posts
    4

    Re: how to use excel stopwatch without impact on other excel

    Thank you so much torachan. the document share it work perfectly for me.

+ 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. Excel stopwatch
    By buwa84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2015, 11:12 AM
  2. Replies: 3
    Last Post: 12-21-2013, 08:46 AM
  3. Excel Stopwatch Help [VBA]
    By lilhugo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-05-2013, 10:27 AM
  4. Excel Stopwatch
    By daddy_smo in forum Excel General
    Replies: 2
    Last Post: 07-26-2011, 02:22 PM
  5. Excel Stopwatch for Mac users (OSX, Excel 2008)
    By raptproductions in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2009, 03:11 PM
  6. OS Version impact on Excel functionality
    By Peter-d in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2006, 08:20 PM

Tags for this Thread

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