Adding values in formfields

June 22nd, 2006 - 09:15 pm ET by Josh | Report spam
I am trying to create a function that will add the values of 2 text boxes
based on if the checkbox is true or false. I am using Word 2003 but it needs
to work on Word 2000 also.
If the checkbox is true then I want the value of Copy divided by Pages
If False then I want the value of Copy times the value of Sheets.

Currently: Copy, Pages, and Total are all textbox form fields
If CheckBox1.Value = True Then
ActiveDocument.FormFields("Total").Result = ActiveDocument.FormFields
("Copy" / "Pages")
Else
ActiveDocument.FormFields("Total").Result =
ActiveDocument.FormFields("Copy" * "sheets")
Endif

Can this be done somehow? Would I have to use something other than
textboxes? The users needs to be able to update the formfields with their
data. Thanks for looking.

Josh
email Follow the discussionReplies 6 repliesReplies Make a reply

Replies

#1 Tony Strazzeri
July 01st, 2006 - 04:24 am ET | Report spam
OK, I didn't expect it would be quite what you wanted because I am not
really sure what you are trying to do.

Do you need more help?
How does it differ from what you wanted?
TonyS.

Josh wrote:
Thanks for the help. I tried this and it worked but not exactly how I wanted.

"Tony Strazzeri" wrote:



Similar topics