+ Reply to Thread
Results 1 to 10 of 10

Stop and restart macro(s) programatically

Hybrid View

JP Romano Stop and restart macro(s)... 01-20-2010, 12:15 PM
blane245 Re: Stop and restart macro(s)... 01-20-2010, 01:38 PM
shg Re: Stop and restart macro(s)... 01-20-2010, 02:26 PM
JP Romano Re: Stop and restart macro(s)... 01-20-2010, 02:36 PM
blane245 Re: Stop and restart macro(s)... 01-20-2010, 02:48 PM
JP Romano Re: Stop and restart macro(s)... 01-20-2010, 02:51 PM
shg Re: Stop and restart macro(s)... 01-20-2010, 03:08 PM
JP Romano Re: Stop and restart macro(s)... 01-20-2010, 03:17 PM
shg Re: Stop and restart macro(s)... 01-20-2010, 07:11 PM
JP Romano Re: Stop and restart macro(s)... 01-20-2010, 11:44 PM
  1. #1
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Stop and restart macro(s) programatically

    Blane - Yeah, I'm trying to wait until they all open, but the problem is still kind of the same - how do I continuously check for the existence of an open file if the file won't open while the macro is running?

    Unfortunately, the fact that they open when downloaded is a limitation I have to live with...it's a function of the application I'm working with and it's been made quite clear to me that it will not be changed for any reason!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Stop and restart macro(s) programatically

    You could use the OnTime method, and schedule a macro run at 1s intervals. It would check to see what files are open, and reschedule itself to run again until they're all open. When they are, it would run the next macro.

    Help has a good example.
    Entia non sunt multiplicanda sine necessitate

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

    Re: Stop and restart macro(s) programatically

    Thanks... I had tried that unsuccessfully, but will give it another go. Thanks again for your time!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Stop and restart macro(s) programatically

    Holler back if you have problems.

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

    Re: Stop and restart macro(s) programatically

    Thanks...I most certainly won't hesitate.
    Ran the first test this afternoon, and the end user was quite pleased.

+ Reply to Thread

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