+ Reply to Thread
Results 1 to 4 of 4

Link multiple CSVs to one worksheet

  1. #1
    Registered User
    Join Date
    07-30-2015
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    1

    Link multiple CSVs to one worksheet

    I want to link my 19 .csv files into one excel workbook. Each .csv has to be imported to one spreadsheet.
    The most important part is it has to be linked, because a lot of .csv might be overwritten multiple times so excel should have the update automatically.
    I have to do it like this because later on i want to export the consolidated excel data into my Project database in Access.
    Can you help me with this.

    P.S. - Any change in .csv will be updated in excel automatically. This linking is very important.
    Do you have any such code?
    Last edited by JBeaucaire; 07-30-2015 at 11:48 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Link multiple CSVs to one worksheet

    Hi -

    Welcome to the forum.

    First of all, what kind of link it is? Does it have like ID in the csv file that can be duplicated in other csv files and you need only one record or sum up the quantity etc? I am not sure.

    If you could explain it further along with few csv files would be better.

    The first idea I have in mind is to create Access table for that and read your csv's line by line, check in the access table and do the insert or update sql as needed.

    event

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,803

    Re: Link multiple CSVs to one worksheet

    I don't use VBA code for this sort of thing. I simply use the "Import External Data" command. Data group --> From Text command --> Find file -> Work through the text import wizard -> After completing the text import wizard, there will be a dialog where you tell Excel where to put the data. Tell it where to put the data, click on "properties" and select the desired "save query definition" and refresh options.

    The spreadsheet should import the csv file according to the settings you have specified. It should also save the query definition and "refresh" the data according to the settings you gave it.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Link multiple CSVs to one worksheet

    Just a note, based on your question... Excel files can be "linked" to one another so that changes in one workbook could show automatically in the other workbook.

    This is NOT really possible with CSV files, live formula-like links because a CSV file is a text file that Excel can read and convert, it is not an actual Excel file type. There are no "cell references" in CSV files like there is in Excel workbooks, CSV files are merely text files.

    So "importing" your CSV files is the only option open to you.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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] Link data from multiple worksheets into 1 worksheet
    By kashaikh78 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-16-2015, 03:47 AM
  2. [Solved]Merge/Append data from multiple .CSVs
    By Zurar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-05-2011, 06:35 AM
  3. Macro for find and replacing values in multiple CSVs
    By kali237 in forum Excel General
    Replies: 4
    Last Post: 10-09-2011, 08:10 AM
  4. Linking to CSVs
    By Grumpy in forum Excel General
    Replies: 1
    Last Post: 01-29-2008, 01:43 PM
  5. Importing Consecutive CSVs
    By sinclasc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2007, 06:38 PM
  6. [SOLVED] How do you link multiple cells in a worksheet?
    By JK (New England Coffee) in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-27-2006, 03:10 PM
  7. [SOLVED] Convert CSVs to Excel workbook
    By Max in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2005, 11:06 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