Consulting

Results 1 to 14 of 14

Thread: Clock running behind after 3/4 days

  1. #1

    Clock running behind after 3/4 days

    Hi everyone,

    I' ve found code to display system time within a powerpoint. Unfortunately it starts running late after about 3,5 days.
    Can someone tell me please what might be the reason for this?

    - Is my timer not working well? (see pictue below)
    - All variables should be cleared?

    Hereby a picture taken on sunday octobre 17th at 13:17...The slide shows however 12:48...
    (the powerpoint was started octobre 13th at 16:30)

    It is frustrating to find out after 3/4 days, which makes progress slow...

    Thanks for your advice!

    Here you can find the file: https://app.box.com/s/773e9xkuc706q6ni6t0jtusvqbgxcfzo

    PS: rotation of background pictures (depending on time) is also wrong

    Greets

    Bruno

    ptt.jpg

    Paus.jpg
    Last edited by bruinenat; 10-18-2021 at 04:04 AM.

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    You can just use the TIME function to get the system time
    Msgbox TIME
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  3. #3
    Quote Originally Posted by John Wilson View Post
    You can just use the TIME function to get the system time
    Msgbox TIME
    Hi John

    thank you for your anser, the problem is not getting the time itself (static), but to keep it up to date (keep it running - minute after minute).
    My clock is running behind after several days, I don't know why.

    Grts
    Bruno
    Last edited by bruinenat; 10-18-2021 at 04:05 AM.

  4. #4
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,711
    Location
    It's better to attach a sample file to your post instead of another file sharing site

    Instructions to attach a file are in my signature
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  5. #5
    Quote Originally Posted by Paul_Hossler View Post
    It's better to attach a sample file to your post instead of another file sharing site

    Instructions to attach a file are in my signature
    I'm willing to do so...however on tryin:

    2021-10-19_10-06-20.jpg

    I also tried renaming the file (shorter name) or adding to a zip file and upload then.

  6. #6
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,711
    Location
    I usually just

    click [Go Advanced]
    click the paperclip icon
    click [Add File]
    browse to the file and select it
    click [Upload]

    Click Inline to embed in body, or [Done] to have it as a attachment


    Capture.JPG

    Capture2.JPG
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  7. #7
    Quote Originally Posted by Paul_Hossler View Post
    I usually just

    click [Go Advanced]
    click the paperclip icon
    click [Add File]
    browse to the file and select it
    click [Upload]

    Click Inline to embed in body, or [Done] to have it as a attachment


    Capture.JPG

    Capture2.JPG
    Hi Paul, that's exactly what I've been trying.
    Is there perhaps a size limit? My powerpoint is 6 MB.

    Thx

    Grts
    Bruno

  8. #8
    VBAX Regular mike31z's Avatar
    Joined
    Apr 2005
    Location
    Highland, Wisconsin
    Posts
    98
    Location
    Can you put the time in the footer, I have been doing it for years. There is a built in option that let you add the date and time.

    Mike P

  9. #9
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    Quote Originally Posted by bruinenat View Post
    Hi Paul, that's exactly what I've been trying.
    Is there perhaps a size limit? My powerpoint is 6 MB.

    Thx

    Grts
    Bruno
    There is a limit of 1Mb.
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  10. #10

    Upload attachment

    Here is my file: Delier Rebuild - 2021.10.13-03 (beeldigIeper).pptm

    Hi all,

    thank you for your respons! I've changed all the pictures with dummy rectangle shapes. File Size has been reduced this way.
    My problem is this: it is meant to be a real time clock running for days - if not weeks. Unfortunately it starts running late after about 3 - 4 days...

    Grts
    Bruno

  11. #11
    VBAX Regular mike31z's Avatar
    Joined
    Apr 2005
    Location
    Highland, Wisconsin
    Posts
    98
    Location
    I had this problem years ago. I was solved by a link on this web site: https://www.rdpslides.com/pptfaq/FAQ...PowerPoint.htm

    Mike P
    Wisconsin, USA

  12. #12
    VBAX Regular mike31z's Avatar
    Joined
    Apr 2005
    Location
    Highland, Wisconsin
    Posts
    98
    Location
    I have done some additional research on this and you need a 3rd party add-in in order to get real time on a working slide show. Once you open the "SLIDE MASTER" you will see the date/time block in the lower left corner. You can move that block to where you want it on the slide and resize it to fit your time and date needs. All date / time must be in that block if you want the updated during tie slide show.

    Mike p

  13. #13
    Hi all,

    late respons - but I was able to fix using timeGetTime() function instead of Timer().
    More info: https://bytes.com/topic/access/insig...ttime-vs-timer

    Thanks for all your input

    Greetings
    Bruno

  14. #14
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,711
    Location
    Thanks for the update
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •