none
Error while creating project for Excel 2013 Workbook in Visual Studio 2012 RRS feed

  • Question

  • Hi,

    I am using Visual Studio 2012 to create an Excel 2013 Workbook application. On selecting these options to create a new project -> Create a new document, I get the error

    Microsoft Visual Studio - Programmatic Access to the Microsoft Office Visual Basic for Applications project system could not be enabled. If Microsoft Office Word or Microsoft Office Excel is running, it can prevent programmatic access from being enabled. Exit Word or Excel before opening or creating your project.

    I have ensured that in Excel 2013, under Trust center settings - Macro Settings - Trust Access to the VBA Project Object Model is checked. I also have "Enable All Macros" selected. But the error is still there. There are no other office apps open.

    Please help. I am unable to continue my development task.

    Thanks.


    • Edited by Live_Free Wednesday, February 13, 2013 7:24 PM
    Wednesday, February 13, 2013 7:21 PM

Answers

  • I am pretty sure, I tried after rebooting my machine. Well its working today. I am able to create the project without any error. Weird.


    • Edited by Live_Free Thursday, February 14, 2013 9:18 PM
    • Marked as answer by Live_Free Thursday, February 14, 2013 9:18 PM
    Thursday, February 14, 2013 9:17 PM

All replies

  • Hi Live_Free,

    Thanks for posting in the MSDN forum.

    Do you ensure that you are running Excel process when you try to create a Excel document-level application?

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, February 14, 2013 7:46 AM
    Moderator
  • I am pretty sure, I tried after rebooting my machine. Well its working today. I am able to create the project without any error. Weird.


    • Edited by Live_Free Thursday, February 14, 2013 9:18 PM
    • Marked as answer by Live_Free Thursday, February 14, 2013 9:18 PM
    Thursday, February 14, 2013 9:17 PM