Click here to Skip to main content
15,884,930 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi There

I am using C and would like to output my data into various sheets of an excel file. Currently, I am writing the my tab separated output data into a text file and then open it by Excel. The problem is that there is only one sheet and accommodating all different groups of data into a single sheet make it difficult to follow the results. I am wonder how I can output different groups of data in separate sheets. Any reply is appreciated.

Regards,
Reza
Posted

1 solution

I think the easiest option (considering you are programming in C, Excel automation via COM would be cumbersome) is writing a Excel macro to import your CSV file data in multiple worksheets.
 
Share this answer
 
Comments
RezDan 3-Apr-12 6:12am    
Hi CPalini,
It works perfectly well. Thank you.

Reza
CPallini 3-Apr-12 6:13am    
You are welcome.

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