The options are: Select One, 4, 9. The form is protected and then I select the
number 4 and click on the next field. Nothing happens other than entering the
next field. The macros that I have stored in the NewMacro module are as follows:
Sub CheckDropDown2()
If ActiveDocument.FormFields("Dropdown1") _
.DropDown.Value = 4 Then ExecuteIf4
End Sub
Sub ExecuteIf4()
MsgBox "The second item was selected."
End Sub
I am using Word 2002 and Win XP Pro.
Thanks
Steve
Steve Finlayson was telling us:
Steve Finlayson nous racontait que :
> The options are: Select One, 4, 9. The form is protected and then I
> select the number 4 and click on the next field. Nothing happens
> other than entering the next field. The macros that I have stored in
> the NewMacro module are as follows: Sub CheckDropDown2()
>
> If ActiveDocument.FormFields("Dropdown1") _
>>>>> .DropDown.Value = 4 Then ExecuteIf4
This should be:
.DropDown.Value = 2 Then ExecuteIf4
.Value = 2 refers to the second item in the list, not the one that has a
string value of "2".
By using the number 4 in a list of 3, the macro cannot find the fourth
element, therefore nothing happens.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Steve Finlayson - 20 Jan 2005 20:41 GMT
Thank you. I have learned a lot. It is working!
I now need only to unprotect the document as I run the second macro that deletes
a bookmarked piece of text and I am done. I think I have that code from when we
run the spell check. I will repost if I need more help.
Thanks
Steve
>Steve Finlayson was telling us:
>Steve Finlayson nous racontait que :
[quoted text clipped - 16 lines]
>By using the number 4 in a list of 3, the macro cannot find the fourth
>element, therefore nothing happens.