Regarding Excel Automation

S

selva

I have a program where it writes and read data from the specified excel
sheet.
However, i am looking for some way to check the spreadsheet so that i
know where to start writing. For example, if when i open the spread
sheet row A1 to A20 are already written to, then i
will know to start writing to A21.

Please help in this regard with approriate syntax in VC 6.0 using MFC.

Thank u
Selva
 
D

Dave Hart

selva said:
I have a program where it writes and read data from the specified excel
sheet.
However, i am looking for some way to check the spreadsheet so that i
know where to start writing. For example, if when i open the spread
sheet row A1 to A20 are already written to, then i
will know to start writing to A21.

Please help in this regard with approriate syntax in VC 6.0 using MFC.

Thank u
Selva

Do a Google search for "Excel+last+cell" and you'll gets lots
of different ways of doing it.

Dave Hart
 
S

selva

Hi Dave,
Now somehow i manage to find out the last cell .
Next problem i have is,

I have to increment the address.
For ex. if the last cell is G22, i have to start writing data from
G24.
please tell me how can we do this again using VC++.

Thank u

Selva
 
S

selva

Hi Dave,

Thanks for u kind reply.
It provides me a lot of valuable information in automation of Excel.
However, still it couldnt satisfy my requirements.
I need to increment the cell address dynamically without giving it
explictly.
If the last cell address is H40, i may require to start writing the
data from the cell address J30.Could u please give me the appropriate
syntax for this in VC++ 6.0 using MFC.

Thanks in advance,

Selva
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top