1 day old to VB and I think that I want something simple. In word I would like 5 checkboxes and I would like VB to take the sum of the checked checkboxes and put them into a paragraph.
Example:
For some reason the example bmp is at the bottom of the post.
The out put would go somewhere on the open word document and in this example it would say.
Hello jack how was your trip?
This script might go something like this
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 9/28/2008 by WinXp
'
If Checkbox 1 = checked
string tipe = type + Hello
End If
If Checkbox 2 = checked
string tipe = type + bob
End If
If Checkbox 3 = checked
string tipe = type + jack
End If
If Checkbox 4 = checked
string tipe = type + How are you
End If
If Checkbox 5 = checked
string tipe = type + how was your trip?
End If
Selection.TypeText Text:=tipe
End Sub
I would appreciate all the help I can get!
Example:
For some reason the example bmp is at the bottom of the post.
The out put would go somewhere on the open word document and in this example it would say.
Hello jack how was your trip?
This script might go something like this
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 9/28/2008 by WinXp
'
If Checkbox 1 = checked
string tipe = type + Hello
End If
If Checkbox 2 = checked
string tipe = type + bob
End If
If Checkbox 3 = checked
string tipe = type + jack
End If
If Checkbox 4 = checked
string tipe = type + How are you
End If
If Checkbox 5 = checked
string tipe = type + how was your trip?
End If
Selection.TypeText Text:=tipe
End Sub
I would appreciate all the help I can get!