Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / April 2008

Tip: Looking for answers? Try searching our database.

Auto-Hide Content (Filling out forms)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mzapalova - 16 Apr 2008 18:17 GMT
I am creating a form in Microsoft word, which contains a drop down about
mid-way through the sheet. There are 4 selections, and each selection
requires different information to be shown/hidden below.

For example, If I chose "breakfast" in the drop down, i want "eggs",
"bacon", "ham", "other" to show up. If I were to choose "lunch", i want
"turkey", "chips", etc.

Assuming that I have all of my various options written out, how do I
create a "hide content" formula upon the selection of a certain drop
down?

Signature

mzapalova

Doug Robbins - Word MVP - 17 Apr 2008 10:20 GMT
Create an autotext entry for the menu for each meal and then use for
following code in a macro that you run on exit from the formfield:

' Macro created 15-11-97 by Doug Robbins to populate a text formfield with
the autotext entry
' corresponding to the item selected in a dropdown formfield
'
Dim myDrop as DropDown
Set myDrop = ActiveDocument.FormFields("Meals").DropDown
Meal = myDrop.ListEntries(myDrop.Value).Name
Menu = ActiveDocument.AttachedTemplate.AutoTextEntries(Meal).Value
ActiveDocument.FormFields("Menu").Result = Menu

Signature

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

> I am creating a form in Microsoft word, which contains a drop down about
> mid-way through the sheet. There are 4 selections, and each selection
[quoted text clipped - 7 lines]
> create a "hide content" formula upon the selection of a certain drop
> down?
DeanH - 17 Apr 2008 10:30 GMT
See a previous posting that may help you with your requirements:
http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=micro
soft.public.word.docmanagement&mid=e76db127-43f1-4b06-b431-05c99a02335e&sloc=en-
us


Hope this helps
DeanH

> I am creating a form in Microsoft word, which contains a drop down about
> mid-way through the sheet. There are 4 selections, and each selection
[quoted text clipped - 7 lines]
> create a "hide content" formula upon the selection of a certain drop
> down?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.