Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfer Data between C++ and Excel

Status
Not open for further replies.

andyroo

Programmer
Oct 23, 2001
19
0
0
US
I need to be able to open an instance of Excel from a C++ program, transfer data to and from the a worksheet and leave Excel open when the program finishes ... could someone point me in the right direction as I don't know where to start

TIA

Andy
 
The simple way is:
Create a file in '.csv' or '.slk' format.
Then open the file with 'ShellExecute' command.
NOTE: These formats don't support graphs, only data.
 
Thanks for the info, that piece of code opens another app but how do I get info to and from it ?
 
Try the 'COMEXCEL' Automation sample in MSDN.

Good luck Phil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top