+ Reply to Thread
Results 1 to 2 of 2

Wait for Workbook to be created from outside program and then continue once created

  1. #1
    Registered User
    Join Date
    03-03-2011
    Location
    Beaumont, TX
    MS-Off Ver
    Excel 2011 Mac
    Posts
    25

    Wait for Workbook to be created from outside program and then continue once created

    This particular bit of script is giving me trouble. I am trying to figure out how to make the VBA program wait until a particular file is generated. Here is the could that is being used.

    EDITED : REMOVED CODE

    An Run-time error '91 is occurring at : FileToLookFor = Workbooks("Worksheet in RIAUFK20 (1)")

    What needs to be changed for the VBA script to recognize that Worksheet in RIAUFK20 (1) is created and ready to be used, and continue further into the program?

    Please help!!


    Figured it out myself!!
    Last edited by ggilzow; 06-25-2013 at 03:25 PM. Reason: REMOVED CODE

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Wait for Workbook to be created from outside program and then continue once created

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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