Ups, danke für die flinke Antwort.
Sodann stöberte ich mal zum Thema Optionsbutton.
Geht das ungefähr in der Art und Weise (Quelle:
https://wiki.openoffice.org/wiki/Docume ... ion_Button)
--------------------------------------
The state of an option button is accessed by the State property of its Model, where 0 is not checked and 1 is checked.
Function IsChecked( oOptionButtonModel As Object ) As Boolean
Dim bChecked As Boolean
If oOptionButtonModel.State = 1 Then
bChecked = True
Else
bChecked = False
End If
IsChecked = bChecked
End Function
The state of an option button is also returned by the getState() method of the control, where False is not checked and True is checked. The code is greatly simplified:
If oOptionButton.State Then
' The option is checked
Else
' The option is not checked
End If
--------------------------------------
Wie kriege ich die Werte "0" oder "1" denn dann als bearbeitbare Variable in?
Anschließend dürfte es ja mit begingtem Text weitergehen.
Oder würdest Du den werteabhängigen Text vom Makro direkt in den Briefkopf schreiben lassen ?
Ups, danke für die flinke Antwort.
Sodann stöberte ich mal zum Thema Optionsbutton.
Geht das ungefähr in der Art und Weise (Quelle: https://wiki.openoffice.org/wiki/Documentation/DevGuide/Basic/Option_Button)
--------------------------------------
The state of an option button is accessed by the State property of its Model, where 0 is not checked and 1 is checked.
Function IsChecked( oOptionButtonModel As Object ) As Boolean
Dim bChecked As Boolean
If oOptionButtonModel.State = 1 Then
bChecked = True
Else
bChecked = False
End If
IsChecked = bChecked
End Function
The state of an option button is also returned by the getState() method of the control, where False is not checked and True is checked. The code is greatly simplified:
If oOptionButton.State Then
' The option is checked
Else
' The option is not checked
End If
--------------------------------------
Wie kriege ich die Werte "0" oder "1" denn dann als bearbeitbare Variable in?
Anschließend dürfte es ja mit begingtem Text weitergehen.
Oder würdest Du den werteabhängigen Text vom Makro direkt in den Briefkopf schreiben lassen ?