
Cannot access VBE from within Word: access not trusted
Sorry to post this problem again, but I am still looking for any hints!
The following code snippet
Word::_ApplicationPtr m_pWord;
m_pWord.CreateInstance( _T("Word.Application") );
VBIDE::VBEPtr pVBE = m_pWord->GetVBE();
does work without any problem with Office 97 and Office 2000. With Office
2002 I get the error return 0x800a17b4 'Programmatic access to Visual Basic
Project is not trusted'.
Word has been configured in Macro Security under Trusted Sources to 'Trust
access to Visual Basic Project' (see Q282830)!
Any ideas?
Thanks
Andreas