run-time error 13

F

Fran

When I attempt to close Word 2000 on a Windows
2000 machine, I get a Microsoft Visual Basic
dialog box that says Run-time error 13, type mismatch.
Can anyone help me with this? I work at
a technical school and need help asap.
Thanks
 
P

Peter Hewett

Hi Fran

You have a document or template with an AutoClose or Document_Close macro. Or
an AddIn using an AutoExit macro. You need to track down where the code is
that's causing the problem. Does it only happen when you create or use a
document based on a certain template? Look in Tools>Templates and Addin
dialog. In the Global templates and add-ins section see if anything is listed
in the listbox. If it is uncheck all items and see if the problem goes away.
If it does you've obviously found the problem. If it doesn't check out your
Normal template, the offending code could well be there.

If you've made recent changes to any code or added new macros check them out
to see if they're the source of your problem. You can also try tracking down
the Normal.dot template and renaming it. When you restart Word, Word will
create a new clean Normal.dot template. To track down the location of the
Normal.dot template you are currently using run this code from the Visual
Basic editors Immediate window:

Debug.print NormalTemplate.FullName

This will display the path of the Normal.dot template.

HTH + Cheers - Peter
 
S

Snoopy

Check the to see if there's a macro, might have a function executing on
closing of a document with an error in the code.
 

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