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.