von F3K Total » Fr, 21.12.2012 15:40
Hi,
da scheint sich was getan zu haben.
Unter 3.3 läuft und funktioniert das Makro, unter 3.4.1 läuft es ohne Fehlermeldung, das Diagramm wird aber nicht ausgeblendet. Komisch.
Ich forsche mal in Version 3.4.1 weiter.
So, schon fertig: Unter 3.4.1 läuft dieses:
Code: Alles auswählen
Private Sub Diagramm()
oSheet = Thiscomponent.currentcontroller.activeSheet
opage = oSheet.drawpage
oform = opage.forms.Formular
for i = 0 to opage.count - 1
oshape = opage(i)
if oshape.Name = "Diagramm1" then odia1 = oshape
if oshape.Name = "Diagramm2" then odia2 = oshape
next i
CheckBox1 = oForm.CheckBox1
If CheckBox1.state = 1 Then
odia1.Visible = True
odia2.Visible = False
Else
odia1.Visible = False
odia2.Visible = True
End If
End Sub
Gruß R
Edit: Unter LO 3.5 und LO 3.6 läuft wiederum nur die erste Version.
Hi,
da scheint sich was getan zu haben.
Unter 3.3 läuft und funktioniert das Makro, unter 3.4.1 läuft es ohne Fehlermeldung, das Diagramm wird aber nicht ausgeblendet. Komisch.
Ich forsche mal in Version 3.4.1 weiter.
So, schon fertig: Unter 3.4.1 läuft dieses:
[code]Private Sub Diagramm()
oSheet = Thiscomponent.currentcontroller.activeSheet
opage = oSheet.drawpage
oform = opage.forms.Formular
for i = 0 to opage.count - 1
oshape = opage(i)
if oshape.Name = "Diagramm1" then odia1 = oshape
if oshape.Name = "Diagramm2" then odia2 = oshape
next i
CheckBox1 = oForm.CheckBox1
If CheckBox1.state = 1 Then
odia1.Visible = True
odia2.Visible = False
Else
odia1.Visible = False
odia2.Visible = True
End If
End Sub[/code]
Gruß R
[color=#0000FF][b]Edit: Unter LO 3.5 und LO 3.6 läuft wiederum nur die erste Version.[/b][/color]