+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Convert XLS to CSV

Hybrid View

  1. #1
    Registered User
    Join Date
    05-05-2011
    Location
    Midwest, US
    MS-Off Ver
    Excel 2003
    Posts
    9

    Convert XLS to CSV

    I will be merging data into a new CRM, the requirements for the CRM are to post everything from a CSV file, unfortunately most of the information is stored in a XLS format. How does one convert XLS to CSV?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-21-2008
    Location
    London, UK
    Posts
    326

    Re: Convert XLS to CSV

    something to try, you will need to edit the targets and source's

    jiuk
    Sub Jack_in_the_UK_XLS_to_CSV()
        Dim my_Microsoft_EXCEL_Document As String
        Dim my_CSV_Document As String
    
    
        Const strInputFolder As String = "C:jiuk_Source"
        Const strOutputFolder As String = "C:jiuk_DESTINATION"
    
        my_Microsoft_EXCEL_Document = Dir(strInputFolder & "*.xls")
    
        Do While my_Microsoft_EXCEL_Document <> ""
            my_CSV_Document = Left(my_Microsoft_EXCEL_Document, InStrRev(my_Microsoft_EXCEL_Document, ".")) & "csv"
            Workbooks.Open strInputFolder & my_Microsoft_EXCEL_Document
            ActiveWorkbook.SaveAs strOutputFolder & my_CSV_Document, xlCSV
            ActiveWorkbook.Close False
            my_Microsoft_EXCEL_Document = Dir
        Loop
    
    End Sub

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Convert XLS to CSV

    just save as csv office button/save as/ other file types choose csv
    Attached Files Attached Files
    Last edited by martindwilson; 01-22-2012 at 07:54 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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