code to pause for 30 secs
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: code to pause for 30 secs

  1. #1
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Christchurch New Zealand
    Posts
    1,030
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    is there a loop that could pause a macro by 30 secs?


    But not application.wait?

    [ This Message was edited by: brettvba on 2002-04-15 16:20 ]

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Christchurch New Zealand
    Posts
    1,030
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    don't worry I have worked it out
    Sub pause()
    Dim mRunTime
    mRunTime = Now + TimeValue("00:00:30")
    Application.OnTime mRunTime, "back"

    End Sub

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
  •  

 

 
DMCA.com