+ Reply to Thread
Results 1 to 3 of 3

Import with macro the last modified csv data file in a specified folder to excel 2007

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Oslo
    MS-Off Ver
    Excel 2007
    Posts
    2

    Import with macro the last modified csv data file in a specified folder to excel 2007

    I am a totally newbie to programming and I just have a basic understanding on how this stuff works. I am not likely to understand any difficult instructions. If anyone could help me out it would be great.

    I have recorded the macro shown below. It imports, sort and saves a specified csv file from a specified folder to a specified folder. I would like to change the macro so that it automatically imports the last modified csv file from C:\Users\aeeibr\Documents\Chronelog\. If this isnt automated I have to rename the file to the name specified in the code everytime I want to import the data.

    When I recive the csv file by mail it is automatically saved to the macro import folder with the syntax "yyyy-mm-dd hh-mmchronolog_zones_report"(2012-08-03 20-01chronolog_zones_report) The date and time is added to the filename when the csv file is automatically savded to the folder by outlook when the file is recived.

    Hope someone can help me out.



    Please Login or Register  to view this content.
    Last edited by Cutter; 08-05-2012 at 10:43 AM. Reason: Added code tags

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Import with macro the last modified csv data file in a specified folder to excel 2007

    @ Ivanball

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    Oslo
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Import with macro the last modified csv data file in a specified folder to excel 2007

    Sorry about that.

+ 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