why does word keep crashing?

T

tswaters

alright, so this is starting to drive me a little crazy here. i'm doing
development with some vba macros. i have a DOTM in the startup directory
which loads a series of templates for me. at some point, I'm not entirely
sure when, but I was typing along and I wrote:

Dim something as[space] ... and after that [space], word crashes,
c0000005, on VBE.DLL, 6.5.10.24.

This can be recreated ... I now can't declare variables without crashing
word. this is only in the document I'm working on. there's no additional
addins or what-have-you that i don't have control of. saving as a DOT file,
opening up VBA and trying the same thing, it still crashes.

I tried to find out what I could do ... I could copy a space, place it
after "as" and type new[space] and it brought up the combobox showing
available objects fine.

i run an 'inspect document' kill all the elements and try again, still
crashes.

i tried opening up each of the three VBA forms I have (F5) only to find
that 2 work while the other crashed .... so I comment out all the code in the
form, save, close & reopen... no effect, still crashes. I cut out the form
elements into a new form and run it, still crashes... copy over the code into
the new form... try the new form & it works.

ok, so then i remove the seemingly erroneous form, ( save a copy first ),
save the file... to try things out, I add back in the FRM file only to find
that word doesn't like that one bit, something about a file access error -- I
think maybe it hadn't yet been removed from the archive? anyway, I save a new
copy of the DOTM file, re-open and find I can declare variables again.

so then I try and re-add the bad FRM file again, and find that everything
works again! until I try and save the file. It gives me a generic "unable
to save" msgbox and the autosave tells me that my disk is full (which it
isn't) .... ok, so I try and close down word... I get maybe 3 or 4
exceptions within message boxes referencing some hex numbers, then word
crashes (for the last time!)

I open up Word fresh, one last time, and now it everything works as it
should.

What a pain.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top