Cannot access VBE from within Word: access not trusted 
Author Message
 Cannot access VBE from within Word: access not trusted

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



Fri, 03 Jun 2005 00:29:55 GMT  
 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



Mon, 06 Jun 2005 03:59:18 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Programmatic Access to VBA Project is not Trusted

2. Programmatic access to Visual Basic Project is not trusted

3. Cannot link datefield between Access and Word form

4. move between Access and Word, back to Access, Close word

5. Creating Embedded word documents from within Access using VBA

6. send e-mail with WORD attachment from within ACCESS (VBA)

7. Invoking Word from within Access

8. Open Access File from within Word

9. Automating email function within Word 2000 using Access 2000

10. Creating MS Word Letter within Access Form

11. Access & VBA: Programming Autocorrect within Access

12. Accessing MS Access application properties within VBScript

 

 
Powered by phpBB® Forum Software