you'll find a nice document on how to use Excel from inside you VC++ application at the folowing link. Hope this will help.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2kta/html/offaut.asp
Probably you can parameterize the function and pass some flag, like the calling control's name/ID/handle so that you can indentify the calling control from inside the function.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.