+ Reply to Thread
Results 1 to 3 of 3

REPEAT SOME ACTION IN MACRO

  1. #1
    SURESH
    Guest

    REPEAT SOME ACTION IN MACRO

    Hi dear friends,

    its an simple question for you....
    i want to repeat some action in my excel workbook at every 5 minuts.. by the
    help of VB

    just like

    Private Sub Workbook_Open()
    Application.ScreenUpdating = false
    dim ST, NT as date
    ST = timer
    nt = st + TimeValue("00:05:00")
    loop
    if nt = timer then
    call XXX
    end if
    do events
    end loop
    End Sub

    can anyone help me??

    thanks in advance

    suresh tp



  2. #2
    Registered User
    Join Date
    06-29-2005
    Location
    England
    Posts
    50
    Please Login or Register  to view this content.
    Regards

    Rich

  3. #3
    Dave Peterson
    Guest

    Re: REPEAT SOME ACTION IN MACRO

    If you want to read more about Excel's VBA OnTime method, visit Chip Pearson's
    site:
    http://www.cpearson.com/excel/ontime.htm

    SURESH wrote:
    >
    > Hi dear friends,
    >
    > its an simple question for you....
    > i want to repeat some action in my excel workbook at every 5 minuts.. by the
    > help of VB
    >
    > just like
    >
    > Private Sub Workbook_Open()
    > Application.ScreenUpdating = false
    > dim ST, NT as date
    > ST = timer
    > nt = st + TimeValue("00:05:00")
    > loop
    > if nt = timer then
    > call XXX
    > end if
    > do events
    > end loop
    > End Sub
    >
    > can anyone help me??
    >
    > thanks in advance
    >
    > suresh tp


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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