Hello Hans,
try calling the indexer directly, e.g. something like
theSheet1->Cells->get_Item(i,3).
Jens.

Signature
http://ManagedXLL.net/ | http://www.stochastix.de/
Replace MSDN with my first name when replying to my email address!
>I have to write a lot of data to excel for analysts who use it further from
> there but would like to use managed C++ and not C# since a lot of code is
[quoted text clipped - 58 lines]
> Thank you for all your help in advance.
> Hans from Vienna
Hans Wien - 17 Jun 2005 14:58 GMT
Thanks a lot Jens, you solved the problem.
The answer in C++ is:
thesheet1->Cells->set_Item(__box(i), __box(3),__box(i) );
Thank you for your effort.
Hans Wien
> Hello Hans,
>
[quoted text clipped - 65 lines]
> > Thank you for all your help in advance.
> > Hans from Vienna