Options

Exporting Data into Excel (.csv) format

sudokusudoku Member Posts: 50
Hi

As per the requirement,I need to export Item No. and Unit Price data from Item table to Excel(.CSV) file. The data is manipulated in the excel file and is imported back into the Item Table.

Ex: Item No. 0001
Unit Price 100.00
Once the export is done , the Item No. in the excel sheet is shown as "1" instead of "0001". As I am trying to GET the Item No. ,I cannot import it back as the format of the Item No. (from 0001 to 1)has been changed .

Can anybody suggest me how to export the data in the same format from Navision to Excel(0001 as 0001).

Thx in advance

Comments

  • SteveOSteveO Member Posts: 164
    When the data is being exported put a single ' in front of any data where you want to keep leading 0's.
    Excel will interpret it as a text instead of a numeric.

    edit - Oops just read that you are using csv not automation. Sorry this doesn't work for csv files. Not sure what you can do...
    This isn't a signature, I type this at the bottom of every message
  • ara3nara3n Member Posts: 9,258
    If you are going to use the CSV file just to display the information, and Not do any additional calculation. You can insert special charactar such as
    char := 160. It's empty space and excel will show the whole list, but you'll have that character in the column.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Miklos_HollenderMiklos_Hollender Member Posts: 1,598
    Does changing the cell format to text in excel helps?
Sign In or Register to comment.