+ Reply to Thread
Results 1 to 5 of 5

Importing a lot of different .csv files depending on the name

  1. #1
    Registered User
    Join Date
    03-24-2020
    Location
    Porto
    MS-Off Ver
    365
    Posts
    6

    Importing a lot of different .csv files depending on the name

    Hello guys,

    I'm new at the forum and i'm looking for some help solving my problem.

    I have a lot of different .csv files with data - 1 file per day named with the date, for example: 2020_03_23_data.csv.

    What I need to do is something like: give the input of the day, month and year I want to consult, in 3 different cells, and then Excel would actualize the data with the correspondent file.
    Is it possible?

    Thank you in advance.

    José

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Importing a lot of different .csv files depending on the name


    Hi,

    yes it's doable …

  3. #3
    Registered User
    Join Date
    03-24-2020
    Location
    Porto
    MS-Off Ver
    365
    Posts
    6

    Re: Importing a lot of different .csv files depending on the name

    Quote Originally Posted by Marc L View Post

    Hi,

    yes it's doable …
    Hello Marc,

    Can you please give some indications/tips about how to do that?

    Thank you,

    José

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Importing a lot of different .csv files depending on the name


    As it depends on all you forgot to well elaborate like any forum expects in the initial post !
    You missed the top page yellow banner as some sources files are necessary
    like the before workbook & expected result workbook …

    So rather than guessing - no time to waste ! - a direction : use the Dir VBA function as explained in the VBA help.
    Read also the help for the Workbooks.Open method working with csv files.
    As it's a forum for coders it's time to learn !

    As you can also activate the Macro Recorder and operate manually in order to get a base of code.

    Of course in case of cross posting it requires more time for any helper to watch out the answers on other forums
    so be patient, much more if you didn't cross-post …
    Last edited by Marc L; 03-24-2020 at 12:22 PM.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Importing a lot of different .csv files depending on the name

    crossposted: https://www.mrexcel.com/board/thread.../#post-5452691

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [SOLVED] IMPORTING TEXT FILES TO EXCEL - Multiple Multi-line text files, each in a new column
    By wrenchfry in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-23-2014, 08:37 PM
  2. Importing Multiple Files depending upon arguments in corresponding cell
    By excel_begin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2014, 12:20 AM
  3. IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files
    By Toxicca in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-12-2014, 09:56 AM
  4. Replies: 0
    Last Post: 11-27-2012, 01:43 PM
  5. Importing Data from Worksheet depending on matching column values
    By jimmy_nora in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2010, 03:57 AM
  6. Importing files .csv files from yahoo finance.
    By larryg003 in forum Excel General
    Replies: 1
    Last Post: 09-08-2010, 09:52 PM
  7. Importing .bas files
    By Joel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-24-2005, 01:06 PM

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