Run Error 13 - Type mismatch

L

Lilbit

I've searched your database for queries regarding this error, but I don't
see anything that helps me. I have a form that has the spellcheck macro
in it. I need to change it and when I do Tools, and Unprotect Document,
so I can put in my password, I get Runtime error "13", Type Mismatch.
When I hit code, it refers me to the line where I have typed the password.
What do I do? Thanks!!
 
D

Doug Robbins - Word MVP

When you press debug, what line of code is highlighted?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
J

Jean-Guy Marcil

Lilbit was telling us:
Lilbit nous racontait que :
It refers me to (highlights) the line where I have typed the password.

Show us your code.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
T

Tony Jollans

Try ActiveDocument.Unprotect Password:="hashem" ...

... assuming "hashem" is the password rather than a variable containing the
password
 
L

Lilbit

Thanks everyone for your help. When I initially set the macro up, I had
put quotation marks around the password and it was working perfectly.
When I started getting the Run Error 13 message, and Tony had brought it
to my attention that the quotation marks were gone, I put them back.
However, I continued to get the Run Error 13 error message. I changed the
password and it worked. Go figure!!!
 

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