+ Reply to Thread
Results 1 to 19 of 19

Timer setup

  1. #1
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Timer setup

    Hope some will help me with a timer
    I have in column a list of Times and when the timer in colum D correspond run a url which is in column c
    probably run a sound as well as a alert
    Regards
    Graham
    Attached Files Attached Files
    Last edited by Grahamfeeley; 04-22-2023 at 10:19 PM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    Hi, do you want the timer to run automatically? And if so what happens after the timer has run?
    Is the time in Column A set to a next time or what?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Timer setup

    thank you for your help
    Yes there is a list of times and after the check time is up it looks at the next future time
    I used to have vba (which I have lost) in the end column with the current time and that checked column a data
    here is updated (Partial) Url file
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Timer setup

    runs automatically after I turn it on

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    Still you haven't answered my first question: What happens with the Rctime AFTER the timer has run?
    And then, all you want it to do is open the browser to view the racetrack?

  6. #6
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Timer setup

    oh sorry misunderstanding
    Yes I would like to run the url link to see if any change
    that is why i would like to set the clock -30 Secs of real time
    OR I adjust the start timesm either way is good
    Thanks for your trouble
    Regards
    Graham

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    I think I have a working module but then o course I have another question🤔
    You say you want to run the timer the moment you open the file, that’s clear but … these races only take place on certain dates or maybe on a specific date for all, so there should be an entry for a date when it is supposed to run
    Let me explain: the race day is April 29 but the current date is April 24 so it’s not useful to open an url at 12:15 today if the race date is the 29th

  8. #8
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Timer setup

    Ok thank you for ther update
    I usually put the new data in every day perhaps 2 hours prior to the first event
    has all the times tracks and Urls

    I would like to start with a start button or I run the macro that starts the countdown

    EG: Tomorrow races i will attach a small sample
    Thanks
    Graham
    Attached Files Attached Files

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    Okay, I still suggest a date value in one cell to tell the code it has to look at that dat and the times in column A.
    One thing however.
    This last table has a different column layout than previous one.
    If you do not mainatain one speciic layout it won't work

  10. #10
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Timer setup

    ok that is true I added a race number......so lets stick with first layout
    Race time
    Track
    URL Link

    regards
    Graham

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    Okay, another question. I am assuming you create separate Excel workbooks for each race date.
    The sample files was 2404 the last one 2504 so the date is refleced in the filename, that would be something to hold on to but then I would suggest the yymmdd format so that you can keep then in a folder knowing which file was for which year, which month which date
    e.g.: 230425 ......xlsx for April 25 2023
    and the columns:
    Rctime Track Rcno URLS as you had in the 2504Links_Saple.xlsx

  12. #12
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    This is what I have for now.
    If you open this file tomorrow it will schedule the macro to run at 11:07, the forst rance and after that trigger is executed it will set the timer to the next time - one second

    When you close the workbook the timer is stopped using the workbook before close event

    Tell me if it works
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Timer setup

    I really appreciate the help you have extended to me....I looked at the code and could'nt beleive it....
    However i am getting one error and I will send screenshot...
    regards.
    Graham
    Attached Images Attached Images

  14. #14
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    The error is probably due to the fact that your Excel version may not support the Speech function.
    You will have to check that out or use comment the lines with Application.Speech, place an apostrophe or delete those lines of coed the information of the next trigger is in the status bar

  15. #15
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    This the function I was using that speaks out a text
    https://learn.microsoft.com/en-us/of...ication.Speech
    Check if it is supported with your version of Excel of if it needs something extra

  16. #16
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    I found quite some bugs in my code
    Am busy putting together anon-file dependent xlam file so that you do not have to copy the vba code to each and every new file you create.

  17. #17
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    Hi Graham,
    Took some time to finetune
    Give this one a try there's a PDF file attached with a short explanation and screenshots
    The excel file is zipped because it exceeds the file size allowed

    Did you figure out how to fic the Application.Speech ? It's still in the file but will now give an error it it still doesn't work.
    The Statusbar (left bottom) will show the notificaton too.
    When you close the file the last schedule will be still there and if it's still later than the moment you reopen the workbook it will de triggered again and wait until the scheduled time is tehre,
    You can also schedule for the next day if you set the date to tomorrow and load the data for tomorrow
    Attached Files Attached Files

  18. #18
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Timer setup

    Your probably quite busy but I'm curious to know it you could use the file.
    I've attached an update just in case
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Timer setup

    Well First of all Yes Iwas busy , but I have to tell you this
    I AM BLOWN AWAY with what you have done here......You have gone all out and I am simply amazyed
    I thank you with all my heart

    HOWever I am having problems loading a race data file, I have tried all formats and still workin on it as of today 3004
    Regards
    Graham
    PS: i will get back to you just giving you an update

+ 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] hwnd timer pause VBA countdown timer
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2019, 04:25 AM
  2. Countdown timer Working BUT starting the timer repeatedly SPEEDS UP TIMER!
    By Vinospam in forum Excel Programming / VBA / Macros
    Replies: 67
    Last Post: 03-30-2019, 06:42 PM
  3. [SOLVED] how to insert modified page setup in print setup
    By JEAN1972 in forum Excel General
    Replies: 1
    Last Post: 01-11-2019, 06:02 AM
  4. timer for 30 minutes and timer based events
    By mohak12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2014, 06:20 PM
  5. [SOLVED] need help with page setup/print Setup on a worksheet
    By laurabach in forum Excel General
    Replies: 9
    Last Post: 04-28-2013, 11:44 PM
  6. Replies: 1
    Last Post: 12-12-2012, 08:46 PM
  7. [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