Angyl was telling us:
Angyl nous racontait que :
You need a macro for that, at least, I do not know of any other way.
In this macro example, the dropdown is named "Increment", the text box is
named "Value" and the text box where the result appears is named "Result".
The "Result" text box is not enabled for user input and the "Value" text box
has its "Calculate on exit" property activated.
Sub GetTotal()
With ActiveDocument.FormFields
If .Item("Value").Result = "" Then
.Item("Result").Result = "0"
Exit Sub
End If
.Item("Result").Result = _
CStr(CSng(.Item("Value").Result) * _
CSng(.Item("Increment").DropDown.ListEntries _
(.Item("Increment").DropDown.Value).Name))
End With
End Sub
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org