Click here to Skip to main content
15,844,477 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have file in CSV form . "D:\Shares\Bhav\cm13OCT2022bhav.csv"

I want to convert it to .XLSX and save it with the name "DATA.xlsx" in the same folder.


What I have tried:

tried to search but could not understand it properly
Updated 16-Oct-22 11:08am

It depends on what you have available to you, and what you want to use.
If you have Excel installed, then use that: Reading Text or CSV File and Saving It as Excel File (.xls or xlsx) using Microsoft Excel[^] - The code samples are in C#, but they are pretty simple to understand and online converters can help: Code Converter C# to VB and VB to C# – Telerik[^]
Share this answer
I'd use EPPlus[^].
Here is an example in c#: epplus Tutorial => Import data from CSV file[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900