CheckBox i Option Button
Private Sub Command1_Click() Check1 = 1 If Check1 = 1 Then Text1.FontBold = True Else Text1.FontBold = False End If Check2 = 1 If Check2 = 1 Then Text1.FontItalic = True Else Text1.FontItalic = False End If Check3 = 1 If Check3 = 1 Then Text1.FontUnderline = True Else Text1.FontUnderline = False End If End Sub
Private Sub Command2_Click() Option1 = True If Option1 = True Then Text1.FontBold = True Else Text1.FontBold = False End If Option2 = True If Option2 = True Then Text1.FontItalic = True Else Text1.FontItalic = False End If Option3 = True If Option3 = True Then Text1.FontUnderline = True Else Text1.FontUnderline = False End If End Sub