• code displays run time error 6068

    Author
    Topic
    #461959

    hello

    Im using the code sample from the microsoft website.
    Ive added the reference Microsoft Visual Basic for Applications Extensibility 5.3″ library

    http://support.microsoft.com/kb/308340

    when I run the code the Microsoft Visual Basic error displays
    run time error ‘6065
    Programmatic access to Visual basic Project is not trusted.

    The reason I need the code is
    major re-architecture has been done to the Word templates. making some Word templates retired and therefore no longer exist.
    Some documents have been created with manual references added to the retired templates. On open of these documents the error message dispalys “Word cannont open this document template C:Program Files )

    I need to write code on document open to validate references and & remove retired references

    many thanks

    diana

    Viewing 0 reply threads
    Author
    Replies
    • #1173989

      Have you followed the steps in the “Set Up the Project Security Permissions” section of the MSKB article?

      • #1173992

        doh!

        thanks Hans…yes that was it

        i think…its coffee o’clock time for me

    Viewing 0 reply threads
    Reply To: code displays run time error 6068

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: