Solution for Office 2007 application project system could not be enabled

When you first time creating a Office 2007 application using VS 2008 you may get the following error.

“Programmatic access to the Microsoft Office Visual Basic for Applications project system could not be enabled”

The Error looks like the following window


The solution for the above error is

1. Open the MS Word or MS Excel

2. Go to Tools Menu then select Macro then click security option

3.Click on the Trusted Publishers Tab

4.Select the check box next to Trust access to Visual Basic Project, then say OK

5.Close all the Office applications and then try to create a new office application.

I got this solution from the following link .

%d bloggers like this: