Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Timer???

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Is it possible to have a timer event in an excel application to refresh the worksheet?

  2. #2
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Do you mean Calculate? If so have a look at the Application.OnTime method in VBA.



  3. #3
    Board Regular
    Join Date
    Feb 2002
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Sorry, a little unclear. Yes, I need for my excel app to calculate entire sheet every, say 5 mins, this app will be open more then not and a refresh (or recalculate) is essential to the purpose. Ideas?

  4. #4
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi Charlie

    In a standard module (alt+F11 Insert>Module) put:

    Sub StartOff()
    Application.OnTime Now + "00:05:00", "StartOff"
    Application.Calculate
    Run "StartOff"
    End Sub



    In the Workbook module (right click on Excel icon left of "File", select "view Code" put:

    Private Sub Workbook_Open()
    Run "StartOff"
    End Sub



  5. #5
    Board Regular
    Join Date
    Feb 2002
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks a bunch Dave...

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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