Results 1 to 9 of 9
  1. #1
    Star Lounger
    Join Date
    Dec 2000
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can't save Word VBA Template files

    I've been having this persistent problem with Word 97 VBA where I can't save a Word VBA template file after I've modified the code.

    When I try to save the file, either in the VBA editor or in Word itself, I get an error message saying, "The disk is full. Free some space on this drive..." (Screen shot of error message attached). Of course, there's plenty of space on my hard drive, and this only seems to happen with files with VBA code, not regular Word (.doc) files.

    This is driving me crazy, because each time it happens and I can't save, I have to export all my modules and forms, close the file, and then re-import them again.

    BTW, I am also using PC Docs 3.7.2 here -- I don't know if that could be causing the problem?

    Has anyone ever encounter anything like this?

    Thanks.
    Attached Files Attached Files

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 28 Times in 27 Posts

    Re: Can't save Word VBA Template files

    Hi Stephan,

    Yikes. It sounds like something in the template is draining your machine's resources. Probably something buggy and probably associated with a form/control. Is this happening with several templates or just one? (i.e. just a buggy template, or something wrong with your Word app?)

    You mentioned forms - are there more than one? Try a process of elimination - export all the forms, then re-import one at a time, saving the template between each re-import, and see if there is a specific one that triggers this problem. If so, you may need to rebuild that form.

    Hope any of the above helps,
    Gary

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

    Re: Can't save Word VBA Template files

    Does PC Docs open templates as read only? If I were you I'd try to develop locally (outside of PC Docs if possible) then copy up to the net. Just a thought...
    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>

  4. #4
    Star Lounger
    Join Date
    Dec 2000
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Can't save Word VBA Template files

    Thank you Gary and Kevin for responding.

    I think I stumbled upon the answer in this Microsoft's KB article: http://support.microsoft.com/support/kb/ar...s/Q166/7/88.ASP. Apparently, the culprit is Word 97 -- the error will occur and you can't save the file if there's a missing reference in the VBA editor, so you have to remove the "missing" reference.

    I think this one should count as another Word 97 "annoyance".

  5. #5
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 28 Times in 27 Posts

    Re: Can't save Word VBA Template files

    Just for future "reference", what is the missing reference, and how do you remove a reference that is "missing"?[img]/w3timages/icons/crazy.gif[/img]

    Gary (migrated to Win-Ofc 2K at last!)[img]/w3timages/icons/laugh.gif[/img]

  6. #6
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Can't save Word VBA Template files

    Missing references won't be the same on any two machines. They're references set in the code project to object libraries, dlls, etc. To locate one, you go into the VB editor and select References from the Tools menu. That will show you a list of available libraries, with those that are actually set sorted to the top and showing a check next to the name. If any of them say MISSING, you need to uncheck that reference. Then compile your code to see if you really need that reference. If you do need it, you'll have to browse to find the correct file. This can easily happen if you develop on a machine with one version of a library (i.e., Word 97) and then copy the project to a machine with a different version (Word 2000). I found this very annoying a couple of years ago when both Outlook 97 and Outlook 98 were being marketed at the same time. Any given machine might have the wrong version.
    Charlotte

  7. #7
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 28 Times in 27 Posts

    Re: Can't save Word VBA Template files

    Thanks Charlotte for the great info.

    I'm lucky I guess to have led a relatively sheltered life in my development efforts, so hadn't run into this particular one before!

  8. #8
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Can't save Word VBA Template files

    You're welcome. For what it's worth, the same information applies to all the Office apps and to VB as well.
    Charlotte

  9. #9
    5 Star Lounger
    Join Date
    Dec 2000
    Location
    Tallahassee, Florida, USA
    Posts
    901
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disabling PCDocs

    Although it doesn't appear to be the culprit, and just for future reference, you can disable docsopen (in an non Win2K environment) by disassociating the Wordin__ template (probably Wordin80) in your templates and add-ins.

    I've been working with Docs for over 5 years, and it's never effected my templates, and going outside docs is generally simple, even without disassociating the template.

    I can update this Tuesday with info on disassociating in Win2k -- it's in my notes at work -- but I believe it's a matter of temporarily moving or renaming the .ini file.
    Karen

Posting Permissions

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