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

前端 未结 7 1474
青春惊慌失措
青春惊慌失措 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:25

    It looks like you are using a text file as an input. Steps:

    1. Go to cell A1
    2. File -> Open -> select the .txt file -> Open
    3. Text Import Wizard will open. Go through steps 1, and 2 according to your input file format. For step three, do this:
    4. Use the mouse to select the column that gives you the headache, long account numbers, in your case. Under 'Column data format' select the 'Text' radio button, then, click Finish.

    You will be good to go.

提交回复
热议问题