Hallo zusammen,
bei folgendem Code wird immer 1 ausgegeben, egal ob OptionButton1 an oder aus ist.
Was ist falsch?
THX
Sub TEST()
If Sheets(„Verträge im Überblick LV,RV,BU“).Zweite_LV_Tabelle_einblenden.Value = True _
And Sheets(„Einstieg“).OptionButton4.Value = True Or Sheets(„Einstieg“).OptionButton3.Value = True _
And Sheets(„Einstieg“).OptionButton2.Value = True Then
MsgBox („1“)
Else
If Sheets(„Verträge im Überblick LV,RV,BU“).Zweite_LV_Tabelle_einblenden.Value = True _
And Sheets(„Einstieg“).OptionButton4.Value = True Or Sheets(„Einstieg“).OptionButton3.Value = True _
And Sheets(„Einstieg“).OptionButton1.Value = True Then
MsgBox („2“)
End If
End If
End Sub