ich habe 3 Optionsfelder. das 3te hat als unterpunkte 6 Kontrollkästchen.
ist das erste oder zweite optionsfeld ausgewählt darf man die kontrollkästchen nicht auswählen können. ist das irgendwie machbar?
danke
christian
Private Sub OptionButton6_Click()
TextBox4.Enabled = True
TextBox5.Enabled = True
End Sub
Private Sub UserForm_Initialize()
TextBox5.Enabled = False
TextBox4.Enabled = False
If TextBox5.Enabled = False Then TextBox5.BackColor = &H8000000F
If TextBox4.Enabled = False Then TextBox4.BackColor = &H8000000F
If TextBox5.Enabled = False Then TextBox5.BorderStyle = fmBorderStyleNone
If TextBox4.Enabled = False Then TextBox4.BorderStyle = fmBorderStyleNone
End Sub
Option Explicit
Private Sub OptionButton6_Change()
TextBox4.BackColor = IIf(OptionButton6, -2147483643, &H8000000F)
TextBox5.BackColor = IIf(OptionButton6, -2147483643, &H8000000F)
TextBox4.Enabled = IIf(OptionButton6, 1, 0)
TextBox5.Enabled = IIf(OptionButton6, 1, 0)
End Sub