A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Auto-Hide Content (Filling out forms)



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2008, 06:17 PM
mzapalova mzapalova is offline
Member
 
First recorded activity by OfficeFrustration: Apr 2008
Posts: 1
Question Auto-Hide Content (Filling out forms)

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?
  #2  
Old April 17th, 2008, 10:20 AM posted to microsoft.public.word.formatting.longdocs
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Auto-Hide Content (Filling out forms)

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(Me al).Value
ActiveDocument.FormFields("Menu").Result = Menu

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

"mzapalova" wrote in message
...

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?




--
mzapalova



  #3  
Old April 17th, 2008, 10:30 AM posted to microsoft.public.word.formatting.longdocs
DeanH
external usenet poster
 
Posts: 1,783
Default Auto-Hide Content (Filling out forms)

See a previous posting that may help you with your requirements:
http://www.microsoft.com/communities...35e&sloc=en-us

Hope this helps
DeanH

"mzapalova" wrote:


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?




--
mzapalova

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.