Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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\ \<RetiredTemplateName.dot>)

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

    many thanks

    diana

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Have you followed the steps in the "Set Up the Project Security Permissions" section of the MSKB article?

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts
    doh!

    thanks Hans...yes that was it

    i think...its coffee o'clock time for me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •