When automating a form, it would be helpful if I could make the exit macro of
a check box dependent on the boolean state of that check box. It would be
even better if I could enter a command such as "if check1=1 then
check2=enabled" or something similar. The current method of using macros is
cumbersome in many situations.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/community/en-us/default.mspx?mid=f5a5febb-b019-46e3-9fe3-1c6f831509d7&dg=microsoft.public.word.vba.general

Re: make form automation recognize the boolean state of a check box by Greg

Greg
Tue Jul 26 21:45:43 CDT 2005

deaf,

Do you mean something like:

Sub RunOnExitCheck1()

If ActiveDocument.FormFields("Check1").Result = True Then
ActiveDocument.FormFields("Check2").CheckBox.Value = True
Else
ActiveDocument.FormFields("Check2").CheckBox.Value = False
End If

End Sub

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

deaf toddy wrote:
> When automating a form, it would be helpful if I could make the exit
> macro of
> a check box dependent on the boolean state of that check box. It
> would be
> even better if I could enter a command such as "if check1=1 then
> check2=enabled" or something similar. The current method of using
> macros is
> cumbersome in many situations.
>
> ----------------
> This post is a suggestion for Microsoft, and Microsoft responds to the
> suggestions with the most votes. To vote for this suggestion, click
> the "I
> Agree" button in the message pane. If you do not see the button,
> follow this
> link to open the suggestion in the Microsoft Web-based Newsreader and
> then
> click "I Agree" in the message pane.
>
> http://www.microsoft.com/office/community/en-us/default.mspx?mid=f5a5febb-b019-46e3-9fe3-1c6f831509d7&dg=microsoft.public.word.vba.general