Creating a macro that changes the layout of a form

M

Mike

I need to create a macro that changes the layout of a form when the user
selects a checkbox, but when I attach the macro to the desired checkbox, the
only options are to activate the macro when the use enters or exits the field
and not when they 'check' the box. Also, the macro places all of the desired
formating additions where the checkbox used to be rather than where I
intended for them to go. What can I do? Or, where is a resource that gives
detailed descriptions about what I want to do?
 
D

Doug Robbins - Word MVP

Your macro should run on exit from the check box and the first thing that it
should do is check the value of the check box to see if it is true or false.
You should also consider that the macro should be able to undo the action if
the user goes back and changes the entry in the text box.

To give more specific advice, you would have to give more information on
exactly what it is that you want the macro to do, but you may get some ideas
from:

Please Fill Out This Form
Part 1: Create professional looking forms in Word
http://www.computorcompanion.com/LPMArticle.asp?ID=22

Part 2: Adding Automation to your Word forms.
http://www.computorcompanion.com/LPMArticle.asp?ID=46

Part 3: Learn more VBA (macros) to automate your forms.
http://www.computorcompanion.com/LPMArticle.asp?ID=119

Part 4: Use custom dialog boxes in your Word forms
http://www.computorcompanion.com/LPMArticle.asp?ID=127

Part 5: Connect your AutoForm to a database to save input time and keep
better records!
http://www.computorcompanion.com/LPMArticle.asp?ID=136

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