P
pedy g
Hi,
In saw this post and it helped me a bit:
http://www.eggheadcafe.com/software/aspnet/31264679/formula-to-calculate-sum.aspx
macropod posted this fomula:
{={REF DropDown1}+{REF DropDown2}+{REF DropDown3}+{REF DropDown4}+{REF DropDown5}}
BUT, in a large document that contains a TOC it doesn't seem to work very well, almost as if it is not refreshing properly.
The I used this macro:
Sub AddDropDownResults()
Dim dDown1, dDown2 As Integer
' Get value of first drop down form field.
dDown1 = Val(ActiveDocument.FormFields ("DropDown1").Result)
' Get value of second drop down form field.
dDown2 = Val(ActiveDocument.FormFields("DropDown2").Result)
' Calculate results and place in Text1 form field
ActiveDocument.FormFields("Text1").Result = Str(dDown1 + dDown2)
End Sub
BUT again in a large document it reacts strangely. It basically scroll up & down every page that the macro is running in...
Any help would be greatly appreciated
Thanks
Pedy
In saw this post and it helped me a bit:
http://www.eggheadcafe.com/software/aspnet/31264679/formula-to-calculate-sum.aspx
macropod posted this fomula:
{={REF DropDown1}+{REF DropDown2}+{REF DropDown3}+{REF DropDown4}+{REF DropDown5}}
BUT, in a large document that contains a TOC it doesn't seem to work very well, almost as if it is not refreshing properly.
The I used this macro:
Sub AddDropDownResults()
Dim dDown1, dDown2 As Integer
' Get value of first drop down form field.
dDown1 = Val(ActiveDocument.FormFields ("DropDown1").Result)
' Get value of second drop down form field.
dDown2 = Val(ActiveDocument.FormFields("DropDown2").Result)
' Calculate results and place in Text1 form field
ActiveDocument.FormFields("Text1").Result = Str(dDown1 + dDown2)
End Sub
BUT again in a large document it reacts strangely. It basically scroll up & down every page that the macro is running in...
Any help would be greatly appreciated
Thanks
Pedy