Link to home
Start Free TrialLog in
Avatar of panthi
panthi

asked on

how to convert .csv file to xlsx file with tabs

I want to convert csv to .xslx and put the data in tabs based on certain criteria, is there a way to do it thru excel macros or vb program.
Avatar of Hendrik Wiese
Hendrik Wiese
Flag of South Africa image

You simply open the CSV file and then save it as .xsls.
So open the CSV file using excel, and then save the file as xsls extension which will allow you to use all the excel functions, macros etc.
Avatar of panthi
panthi

ASKER

May be i am not clear. i understand that i  can do saveas, i basically want to automate this, that is the real question.
Avatar of Nasir Razzaq
What is the criteria for dividing to tabs? You would have to use Office Automation.

http://support.microsoft.com/kb/302094
Avatar of panthi

ASKER

the criteria is value in one of the column
Did you try the automation example?
Avatar of panthi

ASKER

To make it more clear this is what my task is
there is a csv file that is created by a program every day
I need to read that csv file based on the date and create a xlsx file as an output with seperate
tabs for each state. What is the most efficient way to do this i dont think automation example is right for the scenario mentioned.
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial