creating a new document on button click and inserting the content from checked radio box and rich plain text control macro
I have a document with check box content and rich content boxes.. What am trying to do?
If check box 1 to n is clicked.. then all the texts from rich plain content boxes 1 to n should be selected as well..
ex:
check box 1 = rich plain content text 1
check box 2 = rich plain content text 2
check box 3 = rich plain content text 3
check box 4 = rich plain content text 4
so, if only check box 1,3 is checked.. then when the button is clicked it creates a new document with the texts from rich content text boxes 1, 3
when the user clicks on command button it creates a new document with those texts.
Private Sub CommandButton1_Click()
Documents.Add
With ActiveDocument.ActiveWindow.Selection
.TypeText Text:="test"
End With
End Sub
Answers to questions in the comments: Sorry, Rich text and Check Box content control
Comments
Post a Comment