Prevent document access if no confirmation

  • Thread starter Thread starter JasFr
  • Start date Start date
J

JasFr

I'm trying to think of a way to have the user confirm that they have checked
some information on something else before they edit the document.

If they click no (or whatever I put that says they haven't checked the
info), I want to either close the document or make it ready only or in some
way prevent them from editing the document.

I've tried a few methods, namely using this.ReadOnly (which is a read only
field) and this.Close. this.Close crashes when it runs, but I'm pretty sure
it's because it is placed in the startup event.

I can put some more info, but I'm trying to be brief because I'm really just
looking for a simple way of preventing document access if they dont' confirm
something.
 
You could apply protection to the document and put an autoopen macro in it
that asked the question and only removed the protection if the user gave the
correct response.

--
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, originally posted via msnews.microsoft.com
 
Back
Top