ActiveWindow does not equals to ActiveWindow RRS feed

  • Question

  • How to identify Excel Window in VSTO Add-In Project?

    Gues what returns the next code:

    MessageBox.Show(string.Format("ActiveWorkbook == ActiveWorkbook? {0}\nActiveWindow == ActiveWindow? {1}", Globals.ThisAddIn.Application.ActiveWorkbook == Globals.ThisAddIn.Application.ActiveWorkbook, Globals.ThisAddIn.Application.ActiveWindow == Globals.ThisAddIn.Application.ActiveWindow));

    Best regards,


    Thursday, January 10, 2013 8:39 AM

All replies

  • Hi Alessio

    If you want assistance you have to provide more information, rather than expect people to play a guessing game. This includes

    1. Software versions involved: Windows, VSTO, Office

    2. A description of the scenario: What do you need to do and why?

    3. A description of the result you want to have, and the result you're getting

    4. Exact steps to reproduce the problem

    Cindy Meister, VSTO/Word MVP, my blog

    Thursday, January 10, 2013 8:46 AM