The document contains code to format text based on checkbox and option button selections. When command1 is clicked, it checks the state of three checkboxes and sets the font style of text1 to bold, italic, or underline accordingly. When command2 is clicked, it checks the state of three option buttons and sets the font style of text1 similarly.
The document contains code to format text based on checkbox and option button selections. When command1 is clicked, it checks the state of three checkboxes and sets the font style of text1 to bold, italic, or underline accordingly. When command2 is clicked, it checks the state of three option buttons and sets the font style of text1 similarly.
The document contains code to format text based on checkbox and option button selections. When command1 is clicked, it checks the state of three checkboxes and sets the font style of text1 to bold, italic, or underline accordingly. When command2 is clicked, it checks the state of three option buttons and sets the font style of text1 similarly.
If Check1 = 1 Then Text1.FontBold = True Else Text1.FontBold = False End If If Check2 = 1 Then Text1.FontItalic = True Else Text1.FontItalic = False End If If Check3 = 1 Then Text1.FontUnderline = True Else Text1.FontUnderline = False End If End Sub Private Sub Command2_Click() If Option1 = True Then Text1.FontBold = True Else Text1.FontBold = False End If If Option2 = True Then Text1.FontItalic = True Else Text1.FontItalic = False End If If Option3 = True Then Text1.FontUnderline = True Else Text1.FontUnderline = False End If End Sub