Results 1 to 7 of 7

Files do not open until end of program?

Threaded View

  1. #1
    Registered User
    Join Date
    06-08-2010
    Location
    Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    3

    Files do not open until end of program?

    I have written a macro (attached in .txt format) to carry out these actions:

    Copy data from an already opened CSV file.
    Paste data into template file.
    Open next data file (I'm using sendkeys "{down}{enter}")

    I want to loop these commands so I can compile data from many files by only running the macro once. However, no matter where I place the open command (actually a sendkeys statement) the file seems to not open until the program is completed.

    So if I loop it 10 times, it works properly for the first file, then carries out the commands 9 more times, only without opening the actual files I need. After all has been done, the 9 files open, at which point they are no longer useful!

    Is there any way around the issue of the files opening at the very end?
    Also, is there a way to tell Windows Explorer to open the next file without using Sendkeys "{Down}{Enter}" ?

    Any amount of help is greatly appreciated! Thank you,
    Luke
    Attached Files Attached Files
    Last edited by Luke2010; 06-09-2010 at 08:26 AM.

Thread Information

Users Browsing this Thread

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

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