Results 1 to 1 of 1

CSV and number format

Threaded View

  1. #1
    Registered User
    Join Date
    08-31-2011
    Location
    Tokyo
    MS-Off Ver
    Excel 2010
    Posts
    50

    CSV and number format

    Hello,

    I am saving my workbook in a CSV file but I have a problem with number from 1000, it will automatically write it like :
    "1,000". Is there a way to put the number without quote and comma (1000) ?

    I searched in the SaveAs property but I did not find any option, have I miss-looked ?

    Set WB = Workbooks.Open(fname, True, True, local:=True)
    WB.SaveAs Filename:=fname, FileFormat:=xlCSV, CreateBackup:=False, local:=True
    The file I initially open is an Excel file with number formatting.
    I don't know if it is clear but I would like to ignore the Excel number formatting when I create my CSV file.

    EDIT:

    I found the solution using the CorruptLoad with the xlExtractDat parameter !
    Set WB = Workbooks.Open(fname, True, True, local:=True, CorruptLoad:=xlExtractData)
    Thank you in advance.
    Last edited by oro77; 02-23-2012 at 10:25 PM.

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