+ Reply to Thread
Results 1 to 5 of 5

vba query csv file excel 2010

  1. #1
    Registered User
    Join Date
    05-12-2013
    Location
    Tenerife,spain
    MS-Off Ver
    Excel 2010
    Posts
    3

    vba query csv file excel 2010

    Trying to run a query on a csv file (* delimeter)
    (Because its bigger than 3M), so can't import the lot!

    problem no.1 - the jet engine doesn't work with 64 bit Office.
    problem no.2 ODBC - don' want every machine to set up ODBC connection; dsn-less connection - driver manager error

    anyone got 'here's one I made earlier' that will run with 64 bit Excel??

    TIA

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: vba query csv file excel 2010

    Hi,

    did you try opening (not importing) the csv file with excel setting the format parameter to csv?
    http://msdn.microsoft.com/en-us/libr.../ff194819.aspx
    Please Login or Register  to view this content.
    Regards
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    05-12-2013
    Location
    Tenerife,spain
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: vba query csv file excel 2010

    Thought of that; however because the file is bigger than excel can handle, I need to run a quey to return a sub-set of the data before loading/opening the file.
    Also - once opened, using a for .. next loop to enter the result into excel will be slow?

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: vba query csv file excel 2010

    Quote Originally Posted by oldfart101 View Post
    (Because its bigger than 3M)
    So I suppose it's 3 GigaByte here.. shouldn't 64bit Excel open this? Might take some time though

    Once opened you parse all data into an array with one codeline, construct your output in another array and paste it with one codeline, that's faster than looping through all cells.

    Regards

  5. #5
    Registered User
    Join Date
    05-12-2013
    Location
    Tenerife,spain
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: vba query csv file excel 2010

    Please Login or Register  to view this content.

+ 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