Results 1 to 12 of 12
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Closing template causes Word(Not responding) (W2000 SR-1)

    Hi again,

    I'm having a problem with certain templates:

    Create a document based on a template which contain a UserForm with an OK button.
    After editing/adding text and then use File/Save and or using File/Close, responding yes to save changes, the document disappears but will not finish the saving such that Word remains hanging(Not responding).

    Does anyone have a suggestion of what can be wrong in my template code.

    Thanks

    Regards
    Bj

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (W2000 SR-1)

    You're iguana have to post the code in the template.

    Also, what OS? Win9x, ,Mac or NT/2000 (wouldn't you love to see Linux in that list???)

    You may have to include a list of the items in your Task List, but hold off on that till we see the code.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (W2000 SR-1)

    Hi and thanks for the response.
    I attach a word document containing a list of the code. The template itself is >200 kb so it is not allowed attached.

    You will experience an amateur way of amending the original code from an expert. But anyway, it used to work perfectly.

    Hope for the best!

    Thanks again for the interest in helping me.

    Regards
    Bj
    Attached Files Attached Files

  4. #4
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (W2000 SR-1)

    Well, looking over your code is somewhat interesting, but it would be much easier for me if you could post an actual template, not just a document printout of the code.

    Any chance of that if you zip the template?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  5. #5
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (W2000 SR-1)

    Sorry Kevin, I should have thought about that earlier.
    By the way I'm on Windows NT, Word 2000 SR-1.

    (Have been away this week end and no chance of looking into the problem. Now it is monday morning and full time work with Quality Assurance/Quality Audits and implementation of SharePoint Portal Server)

    I zipped it down to 68 kb and here it is.

    Best regards
    Bj
    Attached Files Attached Files

  6. #6
    Star Lounger
    Join Date
    Sep 2001
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (

    Hello Bj

  7. #7
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (

    Thanks a lot hedgehog!

    It might be this bug, for me the freezing does not occur every time, but sometimes and a bit too often.

    To your resolving:

    "catching the close event": does it mean that I can use:

    Sub Document_Close()
    code
    EndSub

    or is it more useful to use the event: DocumentBeforeSave

    I will try both in between all other tasks!

    regards
    Bj

  8. #8
    Star Lounger
    Join Date
    Sep 2001
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (

    Hello Bj

  9. #9
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (

    Thanks again,

    I have been looking at Microsoft MVP and found the following information:
    http://www.mvps.org/word/FAQs/MacrosVBA/In...ptSavePrint.htm

    It might be useful to have a look.

    regards
    Bj

  10. #10
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Toronto, Ontario
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (W2000 SR-1)

    HI 'BJ',
    Don't know if this is of any help, but FYI, I unzipped your form, entered data, saved it, reopened to add more, resaved with no problem at all. Here at home, I'm on Office97 (Word97SR2), standalone operation.

  11. #11
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (W2000 SR-1)

    Thanks for your testing. It appears that it does not happen every time. But anyway I have found a simple solution to prevent the failure happen:

    In ThisDocument I just added the following code:

    Public Sub document_close()
    ActiveDocument.Saved = True
    End Sub

    Whether this is correct to do I don't know, but it works. The only thing that does not happen is that if some text is entered without saving or clicking the OK button in the DialogBox the user will not get the Word-message asking for saving or not.

    I will be looking into this in time, but now I'm very busy with other things that take most of my time.

    Thanks to everyone giving help!

    Best regards
    Bj

  12. #12
    Star Lounger
    Join Date
    Jan 2001
    Location
    Houston, Texas, USA
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing template causes Word(Not responding) (

    Hello hedgehog,

    This really does solve the problem. Thank you for sharing this information.

    -Ruth

Posting Permissions

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