Controlling the cursor when clicking on a protected section

J

JuanManuel

I'm working with a long template with many sections. Upon opening, it has all
the sections protected except for section 1.

In section 5, there is a group of radiobuttons (from the control toolbox
toolbar). The reason why these are relevant is the following:

Whenever I try to click anywhere in sections 3 or 4, the cursor goes
automatically to one of those radiobuttons and selects it (it does not click
it, but it selects it). Not only does the cursor move but this causes the
document itself to scroll down rapidly from the section which I clicked to
section 5, where the radiobuttons are located.

On the other hand, whenever I try to click anywhere in section 2, since this
section is also protected, the cursor flies automatically to the top of the
document in section 1.

The protection of the document is doing its job by preventing any input of
information by making the cursor fly "somewhere" as the user clicks anywhere
in the protected sections.

I would like to change that "somewhere" and gain some control over where
exactly does the cursor go when clicking on a protected section.

Can this be done?
Is there anyway to intercept the clicking on a protected section?

Thank you

Juan Lemus
 
D

Doug Robbins - Word MVP

What, if anything, do you want the user to be able to do in the protected
section?

--
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

JuanManuel

Doug,

Thank you for your interest and quick response.

I don't want the user to do anything in any of the protected sections, but
that is not the point.

What I forgot to mention was that the document can be unprotected by
clicking on any of four commandbuttons placed at the top of section 2.

I'd like to gain some control over where exactly does the cursor go when
clicking on a protected section, because I'd like the cursor to go to any of
the aforementioned commandbuttons. I hope this would make it clear to the
user that he needs to click on one of this buttons to unprotect the document,
especially because there is a Warning directly above of the buttons, stating
this requirement explicitly in font size 28. (you see, the user might skip
this warning, fail to click on a commandbutton, and try to edit something
further down in the document)

Also, if there is anyway to intercept the clicking on a protected section,
i'd like to trigger a msgbox saying: "remember you need to click a button at
the beginning of section 2, to gain access to editing the doc"

Thank you,

Juan Lemus




The Template is very long (over 25 pages)
 
G

Graham Mayor

If you need the user to protect or unprotect the document in order to use it
I have to wonder whether such a protected document is the right tool for the
job? Protected forms work best when they stay protected and the user can
only complete the form fields you have provided - which I suspect is what
Doug was getting at when he asked what you want the users to do in the
protected section (where he may have meant UNprotected). Any function
unavailable in the protected part that is deemed essential, such as spell
checking, should be effected by macro which unlocks, runs the function then
locks again.

If you have an unprotected section in a document you can only tab into it
from the protected section. You would have to select the next form field
following the unprotected section manually. You could use an on-exit macro
to jump straight to the next protected section, by-passing the unprotected
section or you could use a hyperlink in the unprotected section to take you
to the next form field, but the latter is a clumsy solution.

You talk also of radio buttons - from the control toolbox? These are really
aimed at web page construction and are not really suited for use in
protected forms.

What you might consider is to provide a user form (or forms) Word MVP FAQ -
Userforms
http://word.mvps.org/FAQs/Userforms.htm in order to gather the user data and
to populate the document and leave the whole thing unprotected.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
D

Doug Robbins - Word MVP

Or use Copy>Paste Special and paste what you want protected as a picture.

--
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
 

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