oferyo,
Hello. You do not indicate how much data you need to deal with? Either type, or (questions such as: “material” sent to the target Excel file, contains graphs or just data?).
You have not mentioned which version of C # you are using, but can you think of calling a web service from a VBA script embedded or added to the original Excel spreadsheet?
MSDN article on calling WebServices from VBA
I can't remember how to drop VBA code to specific events in an Excel spreadsheet (e.g. recount / press F9), but I think it should be trivial.
If you are using C # 3.5 or later, you can host the WCF service in the application ... but I would suggest a more detailed description of the question, because it could be the solution VBA-> WCF / WebService-> Application -engineered?
Hope this helps you think about the options you have in VBA ...
Yours faithfully,
Aidanapword
source share