Runtime Error 4605: This method or property is not available...

J

JulesJoolesJewels

.... because the object refers to a protected area of the document.

I am getting this error when I am trying to use macros within a form.
Basically what I am doing is using a series of check boxes within a protected
form. When the user checks a box, I want other information to appear in an
unprotected section of the form. But instead when the box is checked by the
user, they get the VB error stated above. Any ideas would be most appreciated!
 
G

Gordon Bentley-Mix

Your code would help, as would information on how it's called. Also, are you
absolutely positive that you're writing into an unprotected section?

If all else fails, try modifying your code to unprotect the document first,
write the desired content, and then re-protect it. It'll be safe enough
because VBA will have control of Word while the code is running, so there's
no risk of anyone touching the protected bits while it's (temporarily)
unprotected.
--
Cheers!

Gordon Bentley-Mix
Word MVP

Please post all follow-ups to the newsgroup.

Read the original version of this post in the Office Discussion Groups - no
membership required!
 

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