Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, guys!
I have managed, with some struggle, to create a Excel workbook with a single worksheet and write information in it; but I need to go beyond. I need to do the things I usually do when working directly in Excel, for example:
1) Add new worksheets, rename them and write in them.
2) Change the width of certain columns or the height of certain rows.
3) Save my work and close all the files I need to close, and return to my app, etc.

Since I can't seem to find examples for C++ on the MSDN website,

Can you please point me towards books or articles or any information on the ways or methods to do those changes?

THANK YOU VERY MUCH!!!!
Posted
Updated 16-Aug-15 2:17am
v2
Comments
Michael_Davies 16-Aug-15 8:38am    
What have you tried so far and look at this:

http://www.codeproject.com/Articles/10886/How-to-use-Managed-C-to-Automate-Excel
Mateo Hernández 16-Aug-15 11:52am    
Thank you for your suggestion.
Mateo Hernández 17-Aug-15 3:00am    
What good is a 11,674,641 member forum if nobody wants to help?
Richard MacCutchan 17-Aug-15 3:18am    
This is a free forum and people respond in their own time and at no cost to you. If you do not get the answer you want then try doing some more research for yourself.
Mateo Hernández 19-Aug-15 9:55am    
Thank you!

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