Startseite
|
Inhalt
StarBasic / OpenOffice.org Basic FAQ
Fragen und Infos:
starbasic@dannenhoefer.de
Startseite
>
10. Makros und Tools
>
10.3 Tools vom Dannenhöfer
>
10.3.17 Zellenschutz
Zurück
Vor
10.3.17
Zellenschutz
Stellt den Schutzstatus einer Calc-Zelle ein. Achtung die Tabelle selber darf nicht geschützt sein.
sub Zellschutz(myCell as Object, gesperrt as boolean, formelhidden as boolean,ausblenden as boolean,druck as boolean)
Dim myProtection As New com.sun.star.util.CellProtection
myProtection.IsLocked=gesperrt
myProtection.IsFormulaHidden=formelhidden
myProtection.IsHidden=ausblenden
myProtection.IsPrintHidden=druck
myCell.CellProtection=myProtection
end sub
Seitenanfang
Letzte Aktualisierung:
06.04.2009