How to import long number from csv to excel without converting to scientific notation in VBA

前端 未结 7 1507
青春惊慌失措
青春惊慌失措 2021-02-05 10:07

I opened semicolon delimited txt file with this code below and long account number showed up as scientific notation after saving to excel regardless of formatting to text that c

7条回答
  •  礼貌的吻别
    2021-02-05 10:46

    I have a solution that works for me with a text file tab delimited.

    Open the text file in notepad etc..

    Copy the text file with Ctrl-A and Ctrl-C then Ctrl-V into a blank sheet.

    Note all the columns that look scientific.

    Then Ctrl-Z (undo). You should now have a blank worksheet.

    Highlight all columns (Ctrl-Click on each column header) that you noted before.

    Change format to Text

    Click on first cell and Ctrl-V again.

提交回复
热议问题