N
Newforms
Hi, I am trying to put togther a form that populates a Word document,
the idea is this:
Bread: $50
Cheese: $20
Milk: $10
Total: $80
I want to have options that can be selected so that the total changes
as required, so that if only bread and cheese are selected the total is
$70.
The code I have so far is this:
Dim mytext As String
If OptionButton1.Value = True Then
bread = "Bread - $50"
ElseIf OptionButton2.Value = True Then
cheese = "Cheese - $20"
ElseIf OptionButton3.Value = True Then
milk = "Milk - $10"
End If
I am trying to include code to determine what options are true and
produce the correct total. Any ideas?
Thanks, Jonathan
PS. I know these are very expensive groceries, its just to illustrate
the point!
the idea is this:
Bread: $50
Cheese: $20
Milk: $10
Total: $80
I want to have options that can be selected so that the total changes
as required, so that if only bread and cheese are selected the total is
$70.
The code I have so far is this:
Dim mytext As String
If OptionButton1.Value = True Then
bread = "Bread - $50"
ElseIf OptionButton2.Value = True Then
cheese = "Cheese - $20"
ElseIf OptionButton3.Value = True Then
milk = "Milk - $10"
End If
I am trying to include code to determine what options are true and
produce the correct total. Any ideas?
Thanks, Jonathan
PS. I know these are very expensive groceries, its just to illustrate
the point!