+ Reply to Thread
Results 1 to 5 of 5

Import multiply CSV files

  1. #1
    Registered User
    Join Date
    10-18-2019
    Location
    Bielsko, Poland
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Question Import multiply CSV files

    Hi,

    I have got a few CSV file in one folder and I use code (et the end of this post) to import this files:

    I changes .TextFilePlatform = 437 on xlWindows, set .TextFileSemicolonDelimiter = True and switched off .TextFileOtherDelimiter = False

    Almost all works good, but if one cell in CSV file contains a F letter, macro insert an empty cell and remove F. Example:

    CSV file
    Mark;Smith;Poland
    Peter;Friend;Poland

    will be import:
    Mark;Smith;Poland
    Peter;[HERE IS AN EMPTY CELL];riend;Poland

    Why it is works like that? I was looking for an answer in internet but without result.

    Best regards
    Grzegorz

    Code from link I give below:
    Please Login or Register  to view this content.
    Last edited by alansidman; 10-18-2019 at 04:29 PM.

  2. #2
    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,882

    Re: Import multiply CSV files

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply 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

  3. #3
    Registered User
    Join Date
    10-18-2019
    Location
    Bielsko, Poland
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Re: Import multiply CSV files

    Woops, this is my first post and only one. I don't understand your answer.

    Best regards
    Grzegorz

  4. #4
    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,882

    Re: Import multiply CSV files

    these are our forum rules: https://www.excelforum.com/forum-rul...rum-rules.html

    Read them and understand them. Failure to comply with them on a consistent basis and you will risk banishment from this forum. We take our rules compliance seriously.

  5. #5
    Registered User
    Join Date
    10-18-2019
    Location
    Bielsko, Poland
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Re: Import multiply CSV files

    Now I understand, but You change your post (cause you are admin ) Firstly you wrote about Rule 3.

    I am sorry...

    Grzegorz

    Moderator Response: My apologies. I clicked on the wrong rule and it took a few minutes to correct. Welcome. --Alan
    Last edited by alansidman; 10-18-2019 at 05:20 PM.

+ 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. Import two txt files in excel and highlights the differece b/w two files data
    By Imran/CVT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2019, 03:43 AM
  2. Iterative process to import multiple text files into multiple excel files
    By Ecth3lion in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-29-2018, 01:04 PM
  3. Import Macro to import separate files to separate worksheets - deletes existing worksheets
    By Hondahawkrider in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2015, 02:24 PM
  4. [SOLVED] Macro to Import Multiple TXT Files into workbook - User to select files/directory
    By saber007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-15-2013, 08:43 PM
  5. Noob 4 Help - Macro to LIST ALL FILES IN FOLDER and then IMPORT ALL LISTED FILES
    By StlSmiln in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2012, 04:02 AM
  6. [SOLVED] Can i import .csv files into Outlook as sep files
    By joe41 in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 03-25-2009, 04:39 AM

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