The code examples in this topic were designed to be used in document-level projects for Word 2003 and Excel 2003 in VSTO 2005. These projects can only be compiled against the Word 2003 or Excel 2003 PIAs on the development computer; otherwise, you will encounter errors such as the one you describe. However, the built solutions can be opened with Word 2007 or Excel 2007 and run as expected.
New document-level projects for Word 2007 and Excel 2007 will be included in the next version of VSTO, code named "Orcas".
You could also revise the code examples to work with application-level add-ins for Word 2007 or Excel 2007 (if you have VSTO 2005 SE installed). For example, in an add-in, you would replace Globals.ThisWorkbook.BuiltinDocumentProperties with this.Application.ActiveWorkbook.BuiltinDocumentProperties.
I hope this helps. If I have misunderstood your question in some way, please clarify your situation, or feel free to post a question on the VSTO forums (http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=16&SiteID=1).
McLean Schofield