I am not a programmer. However, I am in the position of creating a word macro to be used by about 300 people across the state. I have 2 successfully functioning InputBoxes (where the user types in text, which is then placed in the Word document, followed by the end of the sentence when the window is closed.
I need a third which allows for a radio button (or similar) selection of *one* of three options to be placed in the document, with the final part of the statement added upon closure of the window.
I have copied what I have and pasted it below, and it actually works, believe it or not. The down side is it will keep entering the associated text as many times as you are willing to click the option. I just want to have only one choice and I don't know how to make a close button for the window or how to place it into the macro with the other InputBoxes to run it.
Thanks in advance for your help. If you want to see what it looks like, e-mail me and I will e-mail it to you.
THANK YOU! LCA![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
__________________________________________________________
Private Sub CheckBox1_Click()
Selection.TypeText Text:=" General District "
End Sub
Private Sub CheckBox2_Click()
Selection.TypeText Text:=" Circuit "
End Sub
Private Sub CheckBox3_Click()
Selection.TypeText Text:=" Juvenile and Domestic Relations "
End Sub
Private Sub CommandButton4_Click()
Selection.TypeText Text:= _
"Court, and has been mailed/forwarded to the attorney for the"
Selection.TypeText Text:=" Commonwealth pursuant to "
Selection.TypeText Text:="§19.2."
End Sub
Private Sub UserForm_Click()
End Sub
Private Sub UserForm_Initialize()
End Sub
I need a third which allows for a radio button (or similar) selection of *one* of three options to be placed in the document, with the final part of the statement added upon closure of the window.
I have copied what I have and pasted it below, and it actually works, believe it or not. The down side is it will keep entering the associated text as many times as you are willing to click the option. I just want to have only one choice and I don't know how to make a close button for the window or how to place it into the macro with the other InputBoxes to run it.
Thanks in advance for your help. If you want to see what it looks like, e-mail me and I will e-mail it to you.
THANK YOU! LCA
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
__________________________________________________________
Private Sub CheckBox1_Click()
Selection.TypeText Text:=" General District "
End Sub
Private Sub CheckBox2_Click()
Selection.TypeText Text:=" Circuit "
End Sub
Private Sub CheckBox3_Click()
Selection.TypeText Text:=" Juvenile and Domestic Relations "
End Sub
Private Sub CommandButton4_Click()
Selection.TypeText Text:= _
"Court, and has been mailed/forwarded to the attorney for the"
Selection.TypeText Text:=" Commonwealth pursuant to "
Selection.TypeText Text:="§19.2."
End Sub
Private Sub UserForm_Click()
End Sub
Private Sub UserForm_Initialize()
End Sub