CREATING A MACRO

D

DRAFTERJOSH

I AM LOOKING FOR SOME INFORMATION ON HOW TO CREATE A
MACRO. I HAVE A DROP DOWN FEILD WITH 2 CHOICES IN IT. I
WANT TO BE ABLE TO CHOOSE ONE OF THE CHOICES AND HAVE SOME
TEXT APEAR ON MY DOCUMENT. IF I CHOOSE THE SECOND CHOICE
THEN I WANT THE TEXT TO DISSAPEAR. CAN ANYONE HELP ME
WITH THIS?

THANK YOU
DRAFTERJOSH`
 
A

Annamarie

I think that you will need to use VBA. Sorry, I'm not that expert but I
would go to the VBA discussion list for help if I were you.
 
C

Charles Kenyon

This doesn't require a macro, just fields.

Assume your dropdown is named "dropdown1." Create a field like the following
(using Ctrl-F9 to insert the pairs of field braces):

{ If { Ref "dropdown1" } = "test text 1" "true text" "false text" }

Make sure the field property of "calculate on exit" is checked for your
dropdown. "test text 1" is the first dropdown choice. "true text" is what
you want to appear if the drop down has "test text 1" in it. "false text" is
what you want to appear otherwise.

What you are talking about is what Word calls an "online form." Check this
in help. For more about online forms, follow the links at
http://addbalance.com/word/wordwebresources.htm#Forms or
http://word.mvps.org/FAQs/Customization/FillinTheBlanks.htm especially Dian
Chapman's series of articles.

BTW, please do not post in all caps.

Hope this helps,
 

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