+ Reply to Thread
Results 1 to 4 of 4

Import CSV file into Excel Table

  1. #1
    Registered User
    Join Date
    05-26-2017
    Location
    Newton Aycliffe
    MS-Off Ver
    2013
    Posts
    2

    Import CSV file into Excel Table

    Firstly Hello, and thanks in advance for your assistance !

    I'm building a macro that takes a CSV file and imports into an Excel Table.

    I've managed to get the dialogue box to prompt the user up and running, can select and open the file, but need assistance with how to import it into my table.

    The macro will be inserting a new row at the top of the table each time it imports a CSV, so will always begin pasting into cell G3, with all rows moving down on insertion.

    I also don't want to extract the first two rows of the CSV file as they contain header information.

    The CSV file is semicolon delimited.

    Is anyone able to help ?

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Import CSV file into Excel Table

    It would help us a lot to have two sample files: the file you want to import from (CSV file) and the file you want to import to.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    05-26-2017
    Location
    Newton Aycliffe
    MS-Off Ver
    2013
    Posts
    2

    Re: Import CSV file into Excel Table

    As much as I would love to, the sensitive nature of these documents within the business would not permit me to do this due to data protection, sorry.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Import CSV file into Excel Table

    Have you tried using the import function under the Data tab.

    Data > Get External data > From Text

    You can select semicolon delimiter as well has skipping 2 start rows.
    The macro record should provide starting code that you can adapt.

    If you still need help consider making a couple of dummy example files that illustrate the problem. No need to post actual live data files.
    Cheers
    Andy
    www.andypope.info

+ 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] Need to import Data from multiple Excel file in a Excel Table.
    By aatif0712 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-23-2015, 07:39 AM
  2. Import Text File to Access Table using Excel VBA
    By balajismith1992 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2015, 09:34 PM
  3. VBA to Import HTML Table Locally Stored HTML file to excel
    By ermengard in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-09-2015, 10:48 AM
  4. Use an Excel Macro in Access VBA - Import text file in Access Table
    By joogibabu in forum Access Tables & Databases
    Replies: 3
    Last Post: 10-08-2014, 10:04 AM
  5. Import Text File to Access Table using Excel VBA
    By curiosity1990 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-07-2013, 09:43 AM
  6. Import data from Excel file into filtered cells in another Excel file
    By Rebecca12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2012, 04:05 PM
  7. File import - select file and import sheet(1) from closed workbook
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2011, 03:15 AM

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