+ Reply to Thread
Results 1 to 18 of 18

Timer with milliseconds and Automatic data transfer from sheet to sheet

  1. #1
    Registered User
    Join Date
    09-19-2021
    Location
    Athens
    MS-Off Ver
    2007
    Posts
    9

    Timer with milliseconds and Automatic data transfer from sheet to sheet

    Hello everybody,

    I'm trying to create a timer for a running event. I'm trying to post an image and an excel file but i cant upload them, don't know why.

    So i will try to explain as best as i can

    Firstly i would like to create a timer that will count milliseconds as well and appear in the following format "hh:mm:ss.00". As it is i have dissabled automatic calculation and work with the formula "now()" at columns B&C with a Commandbutton so i can control time. I would love to find a workaround so i can enable automatic calculations and stop using macros to recalculate the sheets with results, data etc in my original excel that has 10 sheets.

    That timer needs to start and stop (manually with 1 or 2 buttons, dealers choice) for a range of cells simultaneously and for an individual cell.
    ex. start for "B1:B10" stop for "B9" . But i can't figure out the code that will work with milliseconds.

    My second problem is how to auto transfer data from one sheet to another. Let me explain

    The event im talking about has 6 races. What i would like to do is when an entry is filled in the first sheet that contains the personal info for the athletes and the race(s) of choice,

    Like so: in sheet1, A1:Name B1:Surname C1:*** D1:5km E1:10km F1:40km (headers)

    and a number is assigned for a race, ex. 401 in D2 and/or 421 in F2 for the same person, a formula or vba to search the rest of the sheets, find the sheet for the 5km race (sheet3 for me) and/or the sheet with 40km race (sheet5) and fill the first blank row with the athletes info, Number, Name, surname, ***.

    Any ideas?

    Thanks in advance to everyone that will try to help me
    (and yes i'm using 2007 version, for now i'm stuck with my old laptop)

  2. #2
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    handstopped timers have an accuracy of min 0.1 sec for experienced people, 0.5 for others, so why calculate in millisecondes ?
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    09-19-2021
    Location
    Athens
    MS-Off Ver
    2007
    Posts
    9

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    True but these days even the timers in smartphones have an accuracy of .01, which in this years games came quite handy when 2 athletes finished at the same time in many occasions. As i stated, with now() i can achieve that accuracy but i lose the automation in calculations

  4. #4
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    Can you upload an example, now it's fuzzy.

  5. #5
    Registered User
    Join Date
    09-19-2021
    Location
    Athens
    MS-Off Ver
    2007
    Posts
    9

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    Unfortunatelly no for some reason the "Attachments" and "Insert Image" buttons are not working for me

    Edit: I tried to post a link and got this message: "You are not allowed to post any kinds of links, images or videos until you post a few times." So... i can answer questions tho
    Last edited by AliGW; 09-25-2021 at 04:38 AM. Reason: PLEASE don't quote unnecessarily!

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    Use the "Go Advanced" Button at the bottom right hand side and click on "Manage attachments".

  7. #7
    Registered User
    Join Date
    09-19-2021
    Location
    Athens
    MS-Off Ver
    2007
    Posts
    9

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    I did that, i uploaded the file there, but i still can't attach it here. When i press the "attachments" button i get a blank line
    Last edited by AliGW; 09-25-2021 at 04:37 AM. Reason: PLEASE don't quote unnecessarily!

  8. #8
    Forum Contributor
    Join Date
    06-20-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    126

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    I can't remember but I created a macro based on system timer as well, which would alt tab and copy automatically to Excel as I was a lazy piece of sh*t who didn't like manual entry. Got fired from the job as they had less to charge their clients. The below can be moulded to your needs.

    You are looking for something with timer function as in example from VBA documentation:

    Please Login or Register  to view this content.
    A millisecond is 10^-6, so just put it in decimals and you should be fine. This code was found https://docs.microsoft.com/en-us/off...timer-function
    Last edited by immigrated4urjob; 09-23-2021 at 08:38 PM.

  9. #9
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    it was also my idea to use that timer and there are also questions about it's accurancy.
    https://bytecomb.com/accurate-perfor...timers-in-vba/
    You are using an old 2007, you are just fooling yourself if you use an accurancy < 0.1 sec.

    these days even the timers in smartphones have an accuracy of .01
    The smartphone is ok, the human finger isn't.

    But the question is "what is to be measured".
    The total time or laps or ... in a race over 5, 10 or 40 km ?
    So still waiting for the attachment to get a better idea

  10. #10
    Registered User
    Join Date
    09-19-2021
    Location
    Athens
    MS-Off Ver
    2007
    Posts
    9

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    Quote Originally Posted by bsalv View Post
    You are using an old 2007, ...
    The 2007 version is temporery, thanks for the link, i'll check it out. What is to be measured is total time for each athlete individually.

    what i do is having a commandbutton with now function locked
    Please Login or Register  to view this content.
    and when i press it to, lets say, A1 it shows the current time in this costum format "16:33:43.87" when the athlete finish the race i go to B1 and press it again so i have the finish time "17:23:43.04" and then do a substraction B1-A1 and get his total time of the race. BUT in order for this to work and not update the now() funcion every time i make a change somewhere else is to disable autocalculation through the workbook and use macros to just refresh certain sheets when i wish, where i keep the results, so my formulas and vba codes autosorting the winners based on their time, and some other things to be shown properly. It works.

    I found timers that work as well, and i can keep the autocalculation on, but can't get the milliseconds which is not something i can give up. Even if my human finger is not that fast there is a demand for that accuracy.

    I can't attach anything. I'm going to manage attachments, i upload the file there, but when i'm pressing the attach button in the reply window nothing is showing up, when i return to manage attachments the file is gone
    Last edited by AliGW; 09-25-2021 at 04:37 AM. Reason: PLEASE don't quote unnecessarily!

  11. #11
    Registered User
    Join Date
    09-19-2021
    Location
    Athens
    MS-Off Ver
    2007
    Posts
    9

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    Thanks immigrated4urjob, i have seen that, and to be honest for me it's not really the accuracy that matters but for it to actual work. I did create a system that works but it's on manual and i'm also a lazy piece of sh*t that wants to be automated and just press 1-2 buttons and not 3-4 :P

    Actually the second thing that i'm asking for, the auto data transfer is what i actually need more

  12. #12
    Forum Contributor
    Join Date
    06-20-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    126

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    You will need workbook_close event, essentially that is what you need. But be wary that workbooks need to be macro enabled and trusted.
    Last edited by AliGW; 09-25-2021 at 04:36 AM. Reason: PLEASE don't quote unnecessarily!

  13. #13
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    see attachment, chrono for x players.
    - push start button
    - click with the right mouse key on the name of the player to stop its chrono
    - when all players are arrived, click on the "transfer" button.

    short example to give you an idea
    Attached Files Attached Files
    Last edited by bsalv; 09-24-2021 at 05:11 PM.

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

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    One from the depths of my archives.
    Designed initially as a schools cross-country run timer.
    Competitors list is first populated then transfered to the 'timing sheet'.
    Mass start at the click of a button - individual finishers double-click 'bib' number.
    Result sheets produced when end of race is confirmed.
    Attached Files Attached Files
    Torachan,

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

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    I can't attach anything. I'm going to manage attachments, i upload the file there, but when i'm pressing the attach button in the reply window nothing is showing up, when i return to manage attachments the file is gone
    You are missing a step - are you clicking the button on the right to upload the file and then the save button?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  16. #16
    Registered User
    Join Date
    09-19-2021
    Location
    Athens
    MS-Off Ver
    2007
    Posts
    9

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    Quote Originally Posted by AliGW View Post
    You are missing a step - are you clicking the button on the right to upload the file and then the save button?
    Either i'm blind or something is not showing up :P i don't see anywhere a save button. I even ctrl-F the page and searched for save but nothing comes up.

  17. #17
    Registered User
    Join Date
    09-19-2021
    Location
    Athens
    MS-Off Ver
    2007
    Posts
    9

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    torachan and bsalv thank you both very much!! i was able to combine what you gave me and got what i needed! cheers!

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Timer with milliseconds and Automatic data transfer from sheet to sheet

    Go Advanced | Manage Attachments | Browse to file ... | Upload (across on the right) | Close this Window (also across on the right) | Submit Reply.

    You must be missing at least one of these steps.

+ 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. [SOLVED] Automatic transfer data to another sheet
    By MOHD YUSOFF in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2015, 01:02 PM
  2. Replies: 6
    Last Post: 10-24-2011, 10:59 AM
  3. Automatic transfer of data from one sheet to another
    By his5r2m in forum Excel General
    Replies: 3
    Last Post: 05-08-2009, 06:55 AM
  4. vb code - Automatic transfer of data from one sheet to another
    By herr_bench in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-23-2005, 08:20 PM
  5. vb code - automatic transfer of data from one sheet to another
    By herr_bench in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2005, 06:48 AM
  6. vb code - Automatic transfer of data from one sheet to another
    By herr_bench in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-23-2005, 03:11 AM
  7. Automatic transfer of data from one sheet to another
    By aamirshaikh in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-29-2005, 10:18 AM

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