drop down doc within a doc

G

Gail

I am developing a form for staff to complete on admission of new resident.
This will be completed online. There are various assessments that are only
necessary if certain conditions exist i.e. Pain assessment
To keep this doc shaort as poss I want to be able to see the heading 'Pain
Assessment" only. and if required the nurse can just click on the form to
complete it
I'm new at this so be gentle!
 
D

Doug Robbins - Word MVP on news.microsoft.com

I assume taht you are using formfields in a document that is protected for
forms.

If that is the case, assuming that you assign the bookmark name of
chkPainAssessment to the Pain Assessment check box and that you select the
text for the pain assessment part of the form (the part that is to be
displayed if the box is checked) and you enclose it in a bookmark named
PainAssessmentText, then if you set the following macro to run on exit from
the Pain Assessment check box, it will set the font of the
PainAssessmentText to hidden if the checkbox is unchecked or unhidden if it
is checked.

With ActiveDocument
If .FormFields("chkPainAssessment").CheckBox.Value = True Then
.Bookmarks("PainAssessmentText").Range.Font.Hidden = False
Else
.Bookmarks("PainAssessmentText").Range.Font.Hidden = True
End If
End With

You will need to have the display of hidden text turned off for this to be
effective.
--
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
 

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