I need to transfer a string from C# app into already opened Excel worksheet. I think automation or RDI should be able to do so but dont know how..
As a variation, instead of copying it into a cell – launch a VBA macro / sub with the string as a parameter (if it is easier)…
Please help.
.NET 3.5 / Excel 2003
P.S. Not through clipboard – the transfer must be without user intervention.
How I have resolved this:
the above code helps to find opened file amongst several instances of Excel and amongst opened files with each instance.
The writing to the cell is trivial.