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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Application Help Please

Status
Not open for further replies.

BuilderSpec

Programmer
Dec 24, 2003
383
GB
Hi

Am trying to use the TExcelApplication suite to access an exsiting Excel spreadsheet. Quite simply i just want to read the data out of it one cell at a time. Here is my code so far...

...

if ( OpenDialog1->Execute() )
{
ExcelWorkbook *wb;
AnsiString FN = OpenDialog1->FileName;

ExcelApplication1->Connect();

ExcelApplication1->Workbooks->Open(WideString(FN));

}

I can open my sheet fine , how do I get the contents of cell A1 into a string ?

Can anyone show me the code how to get to the contents of cell A1 in C++ Builder.. i have seen the equiv in Delphi and cannot seem to convert it successfully.





Hope this helps!

Regards

BuilderSpec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top