Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Apr 2001
    Posts
    482
    Thanks
    0
    Thanked 0 Times in 0 Posts

    AutoOpen doesn't happen soon enough (Word 2000)

    I have documents that have an attached template (other than Normal.dot). I will be distributing these. I am trying to compensate for a situation when someone tries to use these files without copying the template file into the template directory (which I already have code to help them do). I tried putting code in the AutoOpen procedure of document file to look to see if the template.dot was located in the users templates folder.

    Problem: The AutoOpen won't fire. Instead, I get a "Compile error: Can't find project or library". Obviously, that's the case because the template is not installed, but I am not given a way around it to continue the code to add it, at least not that I know of.

    Any suggestions??
    Thanks!!
    Troy

  2. #2
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoOpen doesn't happen soon enough (Word 2000)

    What is in your AutoOpen?

    This doesn't sound like a problem with the code.

    It actually sounds like it might be a References issue.

    Open the VBE, Tools|References... and see if there are any references marked as missing.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  3. #3
    4 Star Lounger
    Join Date
    Apr 2001
    Posts
    482
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoOpen doesn't happen soon enough (Word 2000)

    You were right!! On further investigation there was a problem with my code (don't know how it worked before). The first was the value I was looking for in a custom document property. I was to see if the value was "No". After some experimentation I found that the value should have been "False" that I was looking for.

    Thanks for confirming I was on the wrong track!!
    Troy

Posting Permissions

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