ich möchte mehrere Anweisungen in einer if-then-else Struktur benutzen. Irgendwie stelle ich es aber falsch an. Was mache ich denn da falsch?
Vielen Dank!
Beispiel-Prog:
--------------
If Ydrehen Then With ActiveChart.Axes(xlValue)
.MinimumScale = 1
.MaximumScale = 6
.MinorUnit = 1
.MajorUnit = 1
.Crosses = xlCustom
.CrossesAt = 6
.ReversePlotOrder = True
.ScaleType = xlLinear
.DisplayUnit = xlNone
End With
ydef = 6
Else With ActiveChart.Axes(xlValue)
.MinimumScale = 1
.MaximumScale = 6
.MinorUnit = 1
.MajorUnit = 1
.Crosses = xlCustom
.CrossesAt = 1
.ReversePlotOrder = False
.ScaleType = xlLinear
.DisplayUnit = xlNone
End With
ydef = 1
End If