+ Reply to Thread
Results 1 to 2 of 2

if file is open - try again, wait, try again

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    if file is open - try again, wait, try again

    if file is open - try again, wait, try again

    i have the below

    Please Login or Register  to view this content.
    Could anyone advise how to amend this so instead of exiting the sub

    it will

    wait 5 seconds, try again
    wait 5 seconds, try again

    then after them 3 attemps, if its still open, to exit sub


    thanks in advance

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: if file is open - try again, wait, try again

    Try this:

    Please Login or Register  to view this content.
    Last edited by mikeTRON; 08-06-2014 at 10:43 AM.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Wait for user to open new file
    By bishope in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2013, 03:47 PM
  2. Excel Macro won't wait for a webquery which retrieve an xls file
    By kasi makesan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2012, 02:45 PM
  3. [SOLVED] open variably named file, copy/paste data into consolidation file, open next file in list
    By sllawrence1968 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2012, 09:49 PM
  4. VBA for excel 2003. Open file dialog box, open 2007 file xlsx, continue with code
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2011, 12:12 AM
  5. Wait if application open
    By astrikor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2010, 01:27 PM

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