+ Reply to Thread
Results 1 to 2 of 2

macro to open files in specific order

  1. #1
    Registered User
    Join Date
    04-29-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    macro to open files in specific order

    Hello everybody,

    It would be fantastic if someone could help me.

    I am looking for a macro to open a file, copy and paste data to master file, close file.
    Then repeat this process for the next day until today's day or a specified
    day.

    I have listed the files in a separate sheet. Each file name contains the date of the dataset e.g.

    data20120314.csv
    data20120315.csv
    data20120318.csv (no data for weekends)

    The macro should be
    lookup current date of last dataset, then open the file in the row below,
    import data and close file,
    then repeat (loop?) until a specific date = file name.

    Thank you

    Patrick

  2. #2
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: macro to open files in specific order

    I think the following code is maybe 95% of what you asked for.

    Please Login or Register  to view this content.

+ Reply to Thread

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