简体   繁体   中英

automatically import data from CSV to excel/calc sheet

I have here 12 CSV source file (just numbers separated with semicolon).

I need on one action/click take this data and import it to excel/calc to 12 sheets (1 sheet for 1 csv source).

Any Idea how can I do that?

you can do it with Excel vba:

Please let us know if you encounter some trouble building your procedure

By using the code in this post combined with a loop in which you step through the filenames (which you could keep in an array of string) and vary the .Destination with the sheets in the workbook(you can step through them by making as many new sheets as you need in the workbook and then going from Sheets(1) through Sheets(N) , where N is the number of sheets.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM