Excel VSTO Add-In Instance Shared Across Excel Workbooks RRS feed

  • Question

  • I've developed a VSTO add-in for Excel.  My issue is that data that is entered into one instance of the add-in seems to be getting shared with another instance of the add-in when it is loaded in a different workbook.  

    For example, in workbook1, I'll click on a button on my add-in's ribbon, which displays a form.  I'll fill out the form and submit the form, which writes the data to certain object fields in the add-in.  This works as expected, but then I will go to workbook2 and realize that the data I entered exists in workbook2's add-in also.  Instead the data should only exist in workbook1's add-in.  

    Does anyone know why this would be happening?  Is this an Application Domain issue?

    Thank you!

    Tuesday, February 21, 2017 5:03 PM

All replies

  • Hi,
    For your situation,i suggest you showing me the code how you display the form and how to save data to certain object fields,
    that will be helpful for me to analyze your issue.
    Hope that can help you.

    Wednesday, February 22, 2017 6:35 AM