Results 1 to 10 of 10

Stop and restart macro(s) programatically

Threaded View

  1. #1
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Stop and restart macro(s) programatically

    Good day all,
    I've got a series of macros in place which, essentially, download several CSV files into a temp directory, then opens each and copies the data into a single workbook (one sheet).

    What happens is that the some number of the sheets don't actually open until the macro stops. I've tried using the wait (Application.Wait Now + TimeValue("00:00:10")) and sleep functions, but it's not quite doing what I want.

    What I'd LIKE to do is have the macro actually STOP processing for 10 seconds, then proceed (or start a new macro).

    I've also tried putting the wait behind a button in a userform, which is non modal... the csv files open until the user clicks the button.

    Help?

    Thanks!
    Last edited by JP Romano; 01-20-2010 at 03:50 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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